Beispiel #1
0
 /// <summary>
 /// Reads the graph from a file
 /// </summary>
 /// <param name="fileName"></param>
 /// <returns></returns>
 public static Graph Read(string fileName)
 {
     using (Stream stream = File.OpenRead(fileName)) {
         GraphReader graphReader = new GraphReader(stream);
         return(graphReader.Read());
     }
 }
Beispiel #2
0
        /// <summary>
        /// reads graph from a stream
        /// </summary>
        /// <param name="stream"></param>
        /// <returns></returns>
        public static Graph ReadGraphFromStream(Stream stream)
        {
            var graphReader = new GraphReader(stream);

            return(graphReader.Read());
        }
 /// <summary>
 /// reads graph from a stream
 /// </summary>
 /// <param name="stream"></param>
 /// <returns></returns>
 public static Graph ReadGraphFromStream(Stream stream) {
     var graphReader = new GraphReader(stream);
     return graphReader.Read();
 }