V - Vertex typeE - Edge typepublic class AttributedDirectedGraph<V,E extends DefaultEdge> extends DefaultDirectedGraph<V,E>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AttributedDirectedGraph.AttributedEdgeFactory<V,E>
Factory for edges that have attributes.
|
DirectedGraph.EdgeFactory<V,E>| Constructor and Description |
|---|
AttributedDirectedGraph(@UnknownInitialization AttributedDirectedGraph.AttributedEdgeFactory<V,E> edgeFactory)
Creates an attributed graph.
|
| Modifier and Type | Method and Description |
|---|---|
E |
addEdge(V vertex,
V targetVertex)
Deprecated.
|
E |
addEdge(V vertex,
V targetVertex,
Object... attributes) |
static <V,E extends DefaultEdge> |
create(AttributedDirectedGraph.AttributedEdgeFactory<V,E> edgeFactory) |
E |
getEdge(V source,
V target)
Returns the first edge between one vertex to another.
|
Iterable<E> |
getEdges(V source,
V target)
Returns all edges between one vertex to another.
|
boolean |
removeEdge(V source,
V target)
Removes all edges from a given vertex to another.
|
addVertex, create, create, edgeSet, getInwardEdges, getOutwardEdges, getVertex, removeAllVertices, toString, toStringUnordered, vertexSetpublic AttributedDirectedGraph(@UnknownInitialization AttributedDirectedGraph.AttributedEdgeFactory<V,E> edgeFactory)
public static <V,E extends DefaultEdge> AttributedDirectedGraph<V,E> create(AttributedDirectedGraph.AttributedEdgeFactory<V,E> edgeFactory)
public E getEdge(V source, V target)
getEdge in interface DirectedGraph<V,E extends DefaultEdge>getEdge in class DefaultDirectedGraph<V,E extends DefaultEdge>@Deprecated public E addEdge(V vertex, V targetVertex)
addEdge(Object, Object, Object...).DirectedGraphaddEdge in interface DirectedGraph<V,E extends DefaultEdge>addEdge in class DefaultDirectedGraph<V,E extends DefaultEdge>vertex - Source vertextargetVertex - Target vertexpublic Iterable<E> getEdges(V source, V target)
public boolean removeEdge(V source, V target)
removeEdge in interface DirectedGraph<V,E extends DefaultEdge>removeEdge in class DefaultDirectedGraph<V,E extends DefaultEdge>Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.