public class Transpose<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>
extends java.lang.Object
Constructor and Description |
---|
Transpose()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
VertexType |
getOriginalGraphVertex(VertexType v)
Get the vertex in the original graph which corresponds to the given
vertex in the transposed graph.
|
VertexType |
getTransposedGraphVertex(VertexType v)
Get the vertex in the transposed graph which corresponds to the given
vertex in the original graph.
|
GraphType |
transpose(GraphType orig,
GraphToolkit<GraphType,EdgeType,VertexType> toolkit)
Transpose a graph.
|
public GraphType transpose(GraphType orig, GraphToolkit<GraphType,EdgeType,VertexType> toolkit)
orig
- the graph to transposetoolkit
- a GraphToolkit to be used to create the transposed Graphpublic VertexType getTransposedGraphVertex(VertexType v)
v
- the vertex in the original graphpublic VertexType getOriginalGraphVertex(VertexType v)
v
- the vertex in the transposed graphFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.