public class MultiGraph<N,E> extends MultiDiGraph<N,E>
MultiDiGraph
Constructor and Description |
---|
MultiGraph() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_remove(N from,
N to,
E label)
The core, central edge removal method.
|
protected void |
_set(N from,
N to,
int weight,
E label)
The core, central set method.
|
boolean |
is_directed() |
boolean |
remove(java.lang.Object o) |
add, addAll, avg_nodal_degree, clear_all_edges, clear, contains, containsAll, edge_outdegree, edge, edge, edges, edges, equals, hashCode, is_linked, is_simple, isEmpty, iterator, link_count, max_nodal_degree, nodal_outdegree, notifyObservers, notifyObservers, plugObservable, random_edge_iterable, random_node_iterable, remove, remove, removeAll, retainAll, set, set, size, successors, toArray, toArray, toString, unplugObservable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, setChanged
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged
protected boolean _remove(N from, N to, E label)
MultiDiGraph
_remove
in class MultiDiGraph<N,E>
from
- The N-typed node from which the edge is to be removedto
- The N-typed node to which the edge is to be removedlabel
- The E-typed edge label object for the edge which is to be
removed. If specified, only edges matching the label
will be removed. If not specified, all edges will be removed.protected void _set(N from, N to, int weight, E label)
MultiDiGraph
_set
in class MultiDiGraph<N,E>
from
- The N-typed node from which to set the new edgeto
- The N-typed node to which the edge should be setweight
- The weight of the node, unweighted edges should just be
set to 1.label
- The E-typed edge label object for the graph edge.public boolean remove(java.lang.Object o)
public boolean is_directed()
is_directed
in interface Graph<N,E>
is_directed
in class MultiDiGraph<N,E>