N
- node class.E
- edge class.@ParametersAreNonnullByDefault public interface IndefiniteGraph<N,E>
Modifier and Type | Method and Description |
---|---|
default <V> MutableMapping<N,V> |
createDynamicNodeMapping() |
default <V> MutableMapping<N,V> |
createStaticNodeMapping() |
default Collection<? extends E> |
getEdgesBetween(N from,
N to) |
Collection<? extends E> |
getOutgoingEdges(N node)
Retrieves the outgoing edges of a given node.
|
N |
getTarget(E edge)
Retrieves, for a given edge, its target node.
|
@Nonnull Collection<? extends E> getOutgoingEdges(N node)
node
- the node.Collection
of all outgoing edges, or null
if
the node has no outgoing edges.@Nonnull N getTarget(E edge)
edge
- the edge.@Nonnull default Collection<? extends E> getEdgesBetween(N from, N to)
@Nonnull default <V> MutableMapping<N,V> createStaticNodeMapping()
@Nonnull default <V> MutableMapping<N,V> createDynamicNodeMapping()
Copyright © 2015. All rights reserved.