Package edu.uci.ics.jung.graph.util
Class Graphs.UnmodifiableTree<V,E>
java.lang.Object
edu.uci.ics.jung.graph.util.Graphs.UnmodifiableAbstractGraph<V,E>
edu.uci.ics.jung.graph.util.Graphs.UnmodifiableGraph<V,E>
edu.uci.ics.jung.graph.util.Graphs.UnmodifiableForest<V,E>
edu.uci.ics.jung.graph.util.Graphs.UnmodifiableTree<V,E>
- All Implemented Interfaces:
DirectedGraph<V,,E> Forest<V,,E> Graph<V,,E> Hypergraph<V,,E> Tree<V,,E> Serializable
- Enclosing class:
Graphs
static class Graphs.UnmodifiableTree<V,E>
extends Graphs.UnmodifiableForest<V,E>
implements Tree<V,E>, Serializable
-
Field Summary
Fields inherited from class edu.uci.ics.jung.graph.util.Graphs.UnmodifiableAbstractGraph
delegate -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.uci.ics.jung.graph.util.Graphs.UnmodifiableForest
getChildCount, getChildEdges, getChildren, getParent, getParentEdgeMethods inherited from class edu.uci.ics.jung.graph.util.Graphs.UnmodifiableAbstractGraph
addEdge, addEdge, addEdge, addEdge, addVertex, containsEdge, containsVertex, degree, findEdge, findEdgeSet, getDefaultEdgeType, getDest, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getEndpoints, getIncidentCount, getIncidentEdges, getIncidentVertices, getInEdges, getNeighborCount, getNeighbors, getOpposite, getOutEdges, getPredecessorCount, getPredecessors, getSource, getSuccessorCount, getSuccessors, getVertexCount, getVertices, inDegree, isDest, isIncident, isNeighbor, isPredecessor, isSource, isSuccessor, outDegree, removeEdge, removeVertexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.uci.ics.jung.graph.Forest
getChildCount, getChildEdges, getChildren, getParent, getParentEdgeMethods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, addEdge, getDest, getEndpoints, getInEdges, getOpposite, getOutEdges, getPredecessorCount, getPredecessors, getSource, getSuccessorCount, getSuccessors, inDegree, isDest, isPredecessor, isSource, isSuccessor, outDegreeMethods inherited from interface edu.uci.ics.jung.graph.Hypergraph
addEdge, addEdge, addVertex, containsEdge, containsVertex, degree, findEdge, findEdgeSet, getDefaultEdgeType, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getIncidentCount, getIncidentEdges, getIncidentVertices, getNeighborCount, getNeighbors, getVertexCount, getVertices, isIncident, isNeighbor, removeEdge, removeVertex
-
Constructor Details
-
UnmodifiableTree
-
-
Method Details
-
getDepth
Description copied from interface:TreeReturns the (unweighted) distance ofvertexfrom the root of this tree. -
getHeight
public int getHeight()Description copied from interface:TreeReturns the maximum depth in this tree. -
getRoot
Description copied from interface:TreeReturns the root of this tree. The root is defined to be the vertex (designated either at the tree's creation time, or as the first vertex to be added) with respect to which vertex depth is measured. -
getTrees
Description copied from interface:ForestReturns a view of this graph as a collection ofTreeinstances.
-