namespace EdgeGraphHashed
An type-invariant immutable valued edge (undirected) graph. The connections are internally maintained using hashed collections See the Graph documentation and the EdgeGraphHashed API documentation
Companion interface: EdgeGraphHashed<N>
Interfaces
Name | Description |
---|---|
EdgeGraphHashed.Builder<N> | A mutable EdgeGraphHashed builder used to efficiently create new immutable instances. See the Graph documentation and the EdgeGraphHashed.Builder API documentation |
EdgeGraphHashed.Context<UN> | The EdgeGraphHashed's Context instance that serves as a factory for all related immutable instances and builders. |
EdgeGraphHashed.NonEmpty<N> | A non-empty type-invariant immutable valued edge (undirected) graph. The connections are internally maintained using hashed collections See the Graph documentation and the EdgeGraphHashed API documentation |
EdgeGraphHashed.Types | Utility interface that provides higher-kinded types for this collection. |
Static Methods
builder
Returns an empty builder instance.
builder
createContext
Returns a new EdgeGraphHashed context instance based on the given options
.
createContext
options
.defaultContext
Returns the default context for this type of graph.
defaultContext
empty
Returns the (singleton) empty instance of this type and context with given key and value types.
empty
from
Returns an immutable valued Graph, containing the graph elements from each of the given sources
.
from
sources
.of
Returns an immutable valued Graph instance containing the graph elements from the given graphElements
.
of
graphElements
.reducer
Returns a Reducer
that adds received graph elements to a Graph and returns the Graph as a result. When a source
is given, the reducer will first create a graph from the source, and then add graph elements to it.
reducer
Reducer
that adds received graph elements to a Graph and returns the Graph as a result. When a source
is given, the reducer will first create a graph from the source, and then add graph elements to it.