public static void buildNetworkTopology(String fileName){
  Log.printConcatLine("Topology file: ",fileName);
  GraphReaderBrite reader=new GraphReaderBrite();
  try {
    graph=reader.readGraphFile(fileName);
    map=new HashMap<Integer,Integer>();
    generateMatrices();
  }
 catch (  IOException e) {
    Log.printLine("Problem in processing BRITE file. Network simulation is disabled. Error: " + e.getMessage());
  }
}

public static void buildNetworkTopology ( String fileName ) { Log . printConcatLine ( "Topology file: " , fileName ) ; GraphReaderBrite reader = new GraphReaderBrite ( ) ; try { graph = reader . readGraphFile ( fileName ) ; map = new HashMap < Integer , Integer > ( ) ; generateMatrices ( ) ; } catch ( IOException e ) { Log . printLine ( "Problem in processing BRITE file. Network simulation is disabled. Error: " + e . getMessage ( ) ) ; } }
creates the network topology if the file exists and can be successfully parsed . file is written in the brite format and contains topological information on simulation entities .
