public class Graph
extends java.lang.Object
| Constructor and Description |
|---|
Graph() |
Graph(java.util.List<? extends java.lang.Object> inRepObjs) |
Graph(java.util.List<? extends java.lang.Object> inRepObjs,
GraphListener inListener,
GraphBuilder... inBuilders) |
| Modifier and Type | Method and Description |
|---|---|
GraphNode |
addNode(java.lang.Object inRepObj) |
double |
avgPathLength() |
double |
clusterCoeff() |
GraphNode |
getNode(int index) |
GraphNode |
getNode(java.lang.Object inRepObj) |
java.util.List<GraphNode> |
getNodeList() |
java.util.LinkedList<GraphNode> |
getPath(GraphNode srcNode,
GraphNode destNode,
GraphAttributes.AttrKey<?> inWithAttr)
Determine the path between a source and destination node.
|
GraphNode |
getRandomNode() |
int |
getSize() |
boolean |
isPartitioned() |
void |
removeNode(GraphNode inNode) |
public Graph()
public Graph(java.util.List<? extends java.lang.Object> inRepObjs)
public Graph(java.util.List<? extends java.lang.Object> inRepObjs,
GraphListener inListener,
GraphBuilder... inBuilders)
public GraphNode addNode(java.lang.Object inRepObj)
public GraphNode getNode(java.lang.Object inRepObj)
public GraphNode getNode(int index)
public GraphNode getRandomNode()
public java.util.List<GraphNode> getNodeList()
public int getSize()
public void removeNode(GraphNode inNode)
public boolean isPartitioned()
public java.util.LinkedList<GraphNode> getPath(GraphNode srcNode, GraphNode destNode, GraphAttributes.AttrKey<?> inWithAttr)
srcNode - - The start node.destNode - - The destination node.public double avgPathLength()
public double clusterCoeff()