Package | Description |
---|---|
broadwick.graph |
This package contains classes for reading and manipulating graphs.
|
broadwick.graph.algorithms |
This package contains several useful algorithms for acting on graphs.
|
broadwick.graph.writer |
This package contains classes for saving graphs in various formats.
|
Modifier and Type | Class and Description |
---|---|
class |
DirectedGraph<V extends Vertex,E extends Edge<V>>
A
DirectedGraph , suitable for sparse graphs, that permits parallel edges.. |
class |
Tree<V extends Vertex,E extends Edge<V>>
A subtype of Graph which is a (directed, rooted) tree.
|
class |
UndirectedGraph<V extends Vertex,E extends Edge<V>>
A
DirectedGraph , suitable for sparse graphs, that permits parallel edges.. |
Constructor and Description |
---|
ShortestPath(Graph<V,E> graph)
Create a ShortestPath instance.
|
Modifier and Type | Method and Description |
---|---|
void |
GraphWriter.save(String file,
Graph<? extends Vertex,? extends Edge<Vertex>> network)
Write the XML document into file.
|
static void |
GraphViz.save(String file,
Graph<? extends Vertex,? extends Edge<Vertex>> network)
Save the graph as in graphviz format in the given file.
|
static void |
GraphMl.save(String file,
Graph<? extends Vertex,? extends Edge<Vertex>> network)
Save the graph as in graphML format in the given file.
|
static void |
EdgeList.save(String file,
Graph<? extends Vertex,? extends Edge<Vertex>> network)
Save the graph as in edge list format in the given file.
|
String |
GraphWriter.toString(Graph<? extends Vertex,? extends Edge<?>> network)
Print the content of the graph.
|
static String |
GraphViz.toString(Graph<? extends Vertex,? extends Edge<?>> network)
Print the content of the graph.
|
static String |
GraphMl.toString(Graph<? extends Vertex,? extends Edge<?>> network)
Get the string representation of the network.
|
static String |
EdgeList.toString(Graph<? extends Vertex,? extends Edge<?>> network)
Print the content of the graph.
|
static String |
GraphMl.toString(Graph<? extends Vertex,? extends Edge<?>> network,
boolean directed)
Get the string representation of the network.
|
Copyright © 2015 University of Glasgow. All rights reserved.