alun.graph
Class MaskedNetwork<V,E>

java.lang.Object
  extended by 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>


Constructor Summary
MaskedNetwork(MutableGraph<V,E> g)
           
 
Method Summary
 boolean add(V v)
           
 void clear()
           
 boolean connect(V u, V v)
           
 boolean connect(V u, V v, E e)
           
 E connection(java.lang.Object x, java.lang.Object y)
           
 boolean connects(java.lang.Object x, java.lang.Object y)
           
 boolean contains(java.lang.Object x)
           
 boolean disconnect(java.lang.Object u, java.lang.Object v)
           
 java.util.LinkedHashSet<E> getEdges()
           
 java.util.LinkedHashSet<V> getNeighbours(java.lang.Object x)
           
 java.util.LinkedHashSet<V> getVertices()
           
 void hide(java.util.Collection<? extends V> x)
           
 void hide(V x)
           
 java.util.LinkedHashSet<V> inNeighbours(java.lang.Object x)
           
 java.util.LinkedHashSet<V> outNeighbours(java.lang.Object x)
           
 boolean remove(java.lang.Object v)
           
 void show(java.util.Collection<? extends V> x)
           
 void show(V x)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaskedNetwork

public MaskedNetwork(MutableGraph<V,E> g)
Method Detail

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)