Class GraphReader
- Namespace
- AlgorithmsSW.Graph
- Assembly
- AlgorithmsSW.dll
public class GraphReader
- Inheritance
-
GraphReader
- Inherited Members
- Extension Methods
Methods
ReadGraph<T>(TextReader, IComparer<T>)
Reads in a graph from a text file.
public void ReadGraph<T>(TextReader reader, IComparer<T> comparer)
Parameters
reader
TextReadercomparer
IComparer<T>
Type Parameters
T
Remarks
The first item in the file is the number of vertices, the second item is the number of edges, and each subsequent pair of items represents an edge. Any whitespace can separate items.