Package | Description |
---|---|
org.bhave.network.api | |
org.bhave.network.impl.hash | |
org.bhave.network.impl.hash.dynamic |
Modifier and Type | Method and Description |
---|---|
Link |
Network.addLink(Node node1,
Node node2)
Adds a Link to the graph.
|
Link |
Network.createLink()
Creates a new link that can be added to the network.
|
Link |
Network.getLink(int id)
Returns a link by its Integer id or null if the node does not exist.
|
Link |
Network.getLink(Node node1,
Node node2)
Returns a link given the two nodes it connects.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends Link> |
Network.getInLinks(Node node)
Returns a collection of links coming to the given node from other
nodes.
|
java.util.Collection<? extends Link> |
Network.getLinks()
Returns a collection of all the links in the network.
|
java.util.Collection<? extends Link> |
Network.getLinks(Node node)
Returns a collection of links attached to the given node.
|
java.util.Collection<? extends Link> |
Network.getOutLinks(Node node)
Returns a collection of links coming from the given node to other
nodes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Network.addLink(Node node1,
Node node2,
Link link)
Creates and adds a link to the network between the given nodes.
|
boolean |
Network.containsLink(Link link)
Returns true of the given link is in the network.
|
org.apache.commons.lang3.tuple.Pair<Node,Node> |
Network.getNodes(Link link)
Returns the two nodes that the given link connects.
|
boolean |
Network.removeLink(Link link)
Removes a link from the network.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleLink
Implementation of
Link |
Modifier and Type | Method and Description |
---|---|
Link |
HashNetwork.getLink(int id) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends Link> |
HashNetwork.getInLinks(Node node) |
java.util.Collection<? extends Link> |
HashNetwork.getLinks() |
java.util.Collection<? extends Link> |
HashNetwork.getLinks(Node node) |
java.util.Collection<? extends Link> |
HashNetwork.getOutLinks(Node node) |
Modifier and Type | Method and Description |
---|---|
boolean |
HashNetwork.addLink(Node node1,
Node node2,
Link link) |
boolean |
HashNetwork.containsLink(Link link) |
org.apache.commons.lang3.tuple.Pair<Node,Node> |
HashNetwork.getNodes(Link link) |
boolean |
HashNetwork.removeLink(Link link) |
Modifier and Type | Method and Description |
---|---|
Link |
DynamicHashNetwork.addLink(Node node1,
Node node2) |
Link |
DynamicHashNetwork.createLink() |
Link |
DynamicHashNetwork.getLink(int id) |
Link |
DynamicHashNetwork.getLink(Node node1,
Node node2) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends Link> |
DynamicHashNetwork.getInLinks(Node node) |
java.util.Collection<? extends Link> |
DynamicHashNetwork.getLinks() |
java.util.Collection<? extends Link> |
DynamicHashNetwork.getLinks(Node node) |
java.util.Collection<? extends Link> |
DynamicHashNetwork.getOutLinks(Node node) |
Modifier and Type | Method and Description |
---|---|
boolean |
DynamicHashNetwork.addLink(Node node1,
Node node2,
Link link) |
boolean |
DynamicHashNetwork.containsLink(Link link) |
org.apache.commons.lang3.tuple.Pair<Node,Node> |
DynamicHashNetwork.getNodes(Link link) |
boolean |
DynamicHashNetwork.removeLink(Link link) |