|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphInput
Interface for classes that can return a Graph.
Using this interface the program can be oblivious of where the graph data is coming from (e.g. read a DGF file, or generate some random graph.
Example usage:
GraphInput input = new DgfReader( "myGraph.dgf" ); NGraph g = null; try { g = input.get(); } catch (InputException e) { ... }
Example usage:
GraphInput input = new GridGraphGenerator( 3, 7 ); NGraph g = null; try { g = input.get(); } catch (InputException e) { ... }
Nested Class Summary | |
---|---|
static class |
GraphInput.InputData
|
Method Summary | |
---|---|
NGraph<GraphInput.InputData> |
get()
Return a graph. |
Method Detail |
---|
NGraph<GraphInput.InputData> get() throws InputException
InputException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |