public abstract class GraphLib extends Object
Constructor and Description |
---|
GraphLib() |
Modifier and Type | Method and Description |
---|---|
static <Id,Node extends DownNode<Id>> |
down(com.google.common.collect.ImmutableSet<Node> nodeSet)
Create a Graph from an DownNode set.
|
static <Id,Node extends DownNode<Id>> |
down(Iterable<Node> nodeIterable)
Create a Graph from an DownNode iterable.
|
static <Id,Node extends DownNode<Id>> |
down(Node... nodeArray)
Create a Graph from an DownNode array.
|
static <Id,Node extends DownNode<Id>> |
down(Set<Node>... graphs)
Create a Graph from the union of multiple DownNode sets (remember that Graph<Node>
extends Set<Node>).
|
static <Id,Node> Graph<Id,Node> |
graph(IdGraph<Id> idGraph,
com.google.common.collect.ImmutableBiMap<Id,Node> id__node)
Create a Graph from the nested IdGraph (the arc structure) and the mapping between id and node.
|
static <Id,Node extends UpNode<Id>> |
up(com.google.common.collect.ImmutableSet<Node> nodeSet)
Create a Graph from an UpNode set.
|
static <Id,Node extends UpNode<Id>> |
up(Iterable<Node> nodeIterable)
Create a Graph from an UpNode iterable.
|
static <Id,Node extends UpNode<Id>> |
up(Node... nodeArray)
Create a Graph from an UpNode array.
|
static <Id,Node extends UpNode<Id>> |
up(Set<Node>... graphs)
Create a Graph from the union of multiple UpNode sets (remember that Graph<Node> extends
Set<Node>).
|
public static <Id,Node> Graph<Id,Node> graph(IdGraph<Id> idGraph, com.google.common.collect.ImmutableBiMap<Id,Node> id__node)
public static <Id,Node extends UpNode<Id>> Graph<Id,Node> up(com.google.common.collect.ImmutableSet<Node> nodeSet)
public static <Id,Node extends UpNode<Id>> Graph<Id,Node> up(Iterable<Node> nodeIterable)
@SafeVarargs public static <Id,Node extends UpNode<Id>> Graph<Id,Node> up(Node... nodeArray)
@SafeVarargs public static <Id,Node extends UpNode<Id>> Graph<Id,Node> up(Set<Node>... graphs)
public static <Id,Node extends DownNode<Id>> Graph<Id,Node> down(com.google.common.collect.ImmutableSet<Node> nodeSet)
public static <Id,Node extends DownNode<Id>> Graph<Id,Node> down(Iterable<Node> nodeIterable)
@SafeVarargs public static <Id,Node extends DownNode<Id>> Graph<Id,Node> down(Node... nodeArray)
@SafeVarargs public static <Id,Node extends DownNode<Id>> Graph<Id,Node> down(Set<Node>... graphs)
Copyright © 2014. All rights reserved.