alun.graph
Class MaskedNetwork<V,E>
java.lang.Object
alun.graph.MaskedNetwork<V,E>
- All Implemented Interfaces:
- Graph<V,E>, MutableGraph<V,E>
public class MaskedNetwork<V,E>
- extends java.lang.Object
- implements MutableGraph<V,E>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaskedNetwork
public MaskedNetwork(MutableGraph<V,E> g)
contains
public boolean contains(java.lang.Object x)
- Specified by:
contains in interface Graph<V,E>
connects
public boolean connects(java.lang.Object x,
java.lang.Object y)
- Specified by:
connects in interface Graph<V,E>
getVertices
public java.util.LinkedHashSet<V> getVertices()
- Specified by:
getVertices in interface Graph<V,E>
getNeighbours
public java.util.LinkedHashSet<V> getNeighbours(java.lang.Object x)
- Specified by:
getNeighbours in interface Graph<V,E>
outNeighbours
public java.util.LinkedHashSet<V> outNeighbours(java.lang.Object x)
- Specified by:
outNeighbours in interface Graph<V,E>
inNeighbours
public java.util.LinkedHashSet<V> inNeighbours(java.lang.Object x)
- Specified by:
inNeighbours in interface Graph<V,E>
connection
public E connection(java.lang.Object x,
java.lang.Object y)
- Specified by:
connection in interface Graph<V,E>
getEdges
public java.util.LinkedHashSet<E> getEdges()
- Specified by:
getEdges in interface Graph<V,E>
clear
public void clear()
- Specified by:
clear in interface MutableGraph<V,E>
add
public boolean add(V v)
- Specified by:
add in interface MutableGraph<V,E>
remove
public boolean remove(java.lang.Object v)
- Specified by:
remove in interface MutableGraph<V,E>
connect
public boolean connect(V u,
V v)
- Specified by:
connect in interface MutableGraph<V,E>
disconnect
public boolean disconnect(java.lang.Object u,
java.lang.Object v)
- Specified by:
disconnect in interface MutableGraph<V,E>
connect
public boolean connect(V u,
V v,
E e)
- Specified by:
connect in interface MutableGraph<V,E>
hide
public void hide(V x)
show
public void show(V x)
hide
public void hide(java.util.Collection<? extends V> x)
show
public void show(java.util.Collection<? extends V> x)