|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.math.graph_tree.Graph<NodeType>
com.hedgehog.math.graph_tree.UndirectedGraph<NodeType>
NodeType - Node type.public class UndirectedGraph<NodeType>
Title: UndirectedGraph - models an undirected graph of nodes and arcs.
Description: Models a general graph of nodes and arcs.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary |
|---|
| Fields inherited from class com.hedgehog.math.graph_tree.Graph |
|---|
mObjectNodeMap |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
UndirectedGraph()
Default constructor. |
|
UndirectedGraph(java.util.ArrayList<GraphTreeNode<NodeType>> nodes)
Constructs a new graph with the specified linked list of nodes. |
|
UndirectedGraph(GraphTreeNode<NodeType> node)
COnstructor. |
|
UndirectedGraph(java.util.Hashtable<NodeType,GraphTreeNode<NodeType>> nodes)
Constructor. |
|
UndirectedGraph(UndirectedGraph<NodeType> object)
Copy constructor. |
|
UndirectedGraph(UndirectedGraphTreeNode<NodeType> node)
Constructs a new graph, initialising it with the specified node. |
|
| Method Summary |
|---|
| Methods inherited from class com.hedgehog.math.graph_tree.Graph |
|---|
addNode, addNodeObject, bfsIterator, childModelObjects, clear, databaseInsertStatement, databaseUpdateStatement, dfsIterator, fromDatabase, fromXMLNode, getNode, getNodes, graphNodeIDs, graphNodeType, isEmpty, isNodeInGraph, isNodeObjectInGraph, numberOfNodes, numberOfNodes, randomNode, removeAllNodeAdjacencies, removeAllNodes, removeNode, setNodes, toString, toX3DNode, toXMLNode |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UndirectedGraph()
public UndirectedGraph(GraphTreeNode<NodeType> node)
throws java.lang.IllegalArgumentException
node - Node to initialise this graph.
java.lang.IllegalArgumentException - Thrown if the specified node is null.public UndirectedGraph(UndirectedGraphTreeNode<NodeType> node)
node - Graph node to initialise graph.
java.lang.IllegalArgumentException - Null node argument.public UndirectedGraph(java.util.Hashtable<NodeType,GraphTreeNode<NodeType>> nodes)
nodes - Hash-table of nodes.public UndirectedGraph(java.util.ArrayList<GraphTreeNode<NodeType>> nodes)
nodes - Vector of nodes.
java.lang.IllegalArgumentException - Null nodes argument.public UndirectedGraph(UndirectedGraph<NodeType> object)
object - Object to copy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||