public class DirectedWeightedSubgraph extends org.jgrapht.graph.AsSubgraph<SWCPoint,SWCWeightedEdge>
DirectedWeightedGraph
.Modifier | Constructor and Description |
---|---|
protected |
DirectedWeightedSubgraph(DirectedWeightedGraph graph,
Set<SWCPoint> nodeSubset)
Creates a subgraph from a sub-set of nodes.
|
Modifier and Type | Method and Description |
---|---|
List<SWCPoint> |
getBPs()
Gets the branch points (junctions) of the graph.
|
org.jgrapht.traverse.DepthFirstIterator<SWCPoint,SWCWeightedEdge> |
getDepthFirstIterator() |
org.jgrapht.traverse.DepthFirstIterator<SWCPoint,SWCWeightedEdge> |
getDepthFirstIterator(SWCPoint startVertex) |
String |
getLabel()
Returns the label identifying this subgraph.
|
NodeStatistics<SWCPoint> |
getNodeStatistics(String type) |
SWCPoint |
getRoot()
Gets the root of this graph.
|
List<SWCPoint> |
getTips()
Gets the end points (tips) of the subgraph.
|
Tree |
getTree()
Returns the tree associated with the parent's graph
|
void |
setLabel(String label)
Sets an identifying label for this subgraph.
|
Window |
show()
Displays this graph in a new instance of SNT's "Dendrogram Viewer".
|
double |
sumEdgeWeights(boolean adjusted)
Gets the sum of all edge weights.
|
addEdge, addEdge, addVertex, addVertex, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeWeight, vertexSet
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
protected DirectedWeightedSubgraph(DirectedWeightedGraph graph, Set<SWCPoint> nodeSubset)
graph
- the graph from which nodeSubset
were extracted.nodeSubset
- the sub-set of nodes that define the sub-graph.public double sumEdgeWeights(boolean adjusted)
adjusted
- whether edges of parent graph should be taken into accountpublic org.jgrapht.traverse.DepthFirstIterator<SWCPoint,SWCWeightedEdge> getDepthFirstIterator()
public org.jgrapht.traverse.DepthFirstIterator<SWCPoint,SWCWeightedEdge> getDepthFirstIterator(SWCPoint startVertex)
public List<SWCPoint> getBPs()
public List<SWCPoint> getTips()
public SWCPoint getRoot()
public NodeStatistics<SWCPoint> getNodeStatistics(String type)
public Tree getTree()
public Window show()
public void setLabel(String label)
label
- the identifying stringpublic String getLabel()
Copyright © 2015–2021 Fiji. All rights reserved.