public class OptimizedDirectedMultigraph<V>
extends org.jgrapht.graph.SimpleDirectedWeightedGraph<V,org.jgrapht.graph.DefaultWeightedEdge>
Title: Optimized Directed Multigraph
Description: A directed multigraph where the edge's multiplicity is implemented as the weight of the edge as opposed to many instances of edges - has better performances under graph traversal and connectivity algorithms.
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
OptimizedDirectedMultigraph() |
| Modifier and Type | Method and Description |
|---|---|
org.jgrapht.graph.DefaultWeightedEdge |
addEdge(V sourceVertex,
V targetVertex) |
org.jgrapht.graph.DefaultWeightedEdge |
addEdge(V sourceVertex,
V targetVertex,
int multiplicity) |
int |
getEdgeMultiplicity(org.jgrapht.graph.DefaultWeightedEdge edge) |
builder, builder, createBuilder, createBuilderaddEdge, addVertex, clone, containsEdge, containsVertex, createIntrusiveEdgesSpecifics, createSpecifics, createSpecifics, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, getType, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, isDirected, isWeighted, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeWeight, vertexSetassertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSetsfinalize, getClass, notify, notifyAll, wait, wait, waitaddEdge, addVertex, containsEdge, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, getType, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, setEdgeWeight, vertexSetpublic org.jgrapht.graph.DefaultWeightedEdge addEdge(V sourceVertex, V targetVertex, int multiplicity)
public int getEdgeMultiplicity(org.jgrapht.graph.DefaultWeightedEdge edge)
Copyright © 2019. All rights reserved.