|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.cas.multigraph.AbGraph
public class AbGraph
The Aberration Multigraph Class.
Constructor Summary | |
---|---|
AbGraph()
|
Method Summary | |
---|---|
boolean |
addBreak(Break br)
Adds a break. |
boolean |
addChromosome(Chromosome chrom)
Adds the specified chromosome to the Aberration Multigraph. |
boolean |
addEdge(AbEdge e)
Adds an edge to the graph but does not the vertices. |
void |
addEdges(java.util.Set edge_set)
Adds all edges in the edge_set |
boolean |
addFinalEdge(AbVertex v1,
AbVertex v2)
Joins v1 to v2 with a final edge and adds that final edge to this AbGraph |
boolean |
addToComponent(AbVertex vertex,
java.util.Set component,
int in_edge)
Adds vertices connected to vertex to the set component but without going back through the in_edge. |
boolean |
addVertex(AbVertex v)
Adds a vertex to the graph but does not add any associated edges. |
void |
addVertices(java.util.Set vertex_set)
Adds all vertices in the vertex_set |
java.util.Set |
connectedComponentOf(AbVertex vertex)
Returns a set of vertices that are in the same connected component as vertex. |
java.util.Vector<AbGraph> |
connectedComponents()
Returns a vector containing the connected components of this AbGraph. |
AbGraph |
exchangeGraph()
Returns the exchange subgraph. |
AbGraph |
finalConfigurationGraph()
Returns the final configuration subgraph. |
AbGraph |
fullCopy()
Returns a full copy of this AbGraph |
AbEdge |
getEdge(AbVertex vertex,
int type)
Returns the edge incident on vertex, for edge type type. |
AbEdge |
getEdge(Chromosome chrom,
long location)
Returns the chromatin edge of chrom that contains location. |
java.util.Set |
getFreeEnds()
Returns all the free ends. |
AbVertex |
getVertex()
Returns a vertex -- a telomere first and if there are no telomeres, then a free end If there are no free ends, then it returns null. |
java.util.TreeSet |
getVertices(Chromosome chrom)
Returns a tree set of all vertices of a given Chromosome |
AbVertex |
partnerOf(AbVertex vertex,
int edge_type)
Returns the partner of vertex of the given edge_type |
AbGraph |
removeComponentOf(AbVertex vertex)
Removes the connected component of the specified vertex from this AbGraph and returns that connected component as an AbGraph. |
boolean |
removeEdge(AbEdge e)
Remove the specified edge. |
boolean |
removeToComponent(AbVertex vertex,
AbGraph component,
int in_edge)
Recursive function that removes to the component the edges and vertices connected to the specified vertex. |
boolean |
removeVertex(AbVertex vertex)
Remove the specified vertex. |
AbGraph |
subgraph(boolean telomeres,
boolean free_ends,
boolean chrom,
boolean init,
boolean fin)
Returns a subgraph of this AbGraph |
java.lang.String |
toString()
A string representation of the multigraph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbGraph()
Method Detail |
---|
public boolean addChromosome(Chromosome chrom)
chrom
- chromosome to add
public java.util.Set getFreeEnds()
public java.util.TreeSet getVertices(Chromosome chrom)
chrom
- chromosome
public AbEdge getEdge(Chromosome chrom, long location)
chrom
- chromosomelocation
- location
public AbEdge getEdge(AbVertex vertex, int type)
vertex
- type
- edge type
public boolean addBreak(Break br)
br
- location
-
public boolean addVertex(AbVertex v)
v
- vertex to add
public void addVertices(java.util.Set vertex_set)
vertex_set
- public boolean addEdge(AbEdge e)
e
- edge to add
public boolean addFinalEdge(AbVertex v1, AbVertex v2)
v1
- v2
-
public void addEdges(java.util.Set edge_set)
edge_set
- public AbGraph exchangeGraph()
public AbGraph finalConfigurationGraph()
public AbGraph fullCopy()
public AbGraph subgraph(boolean telomeres, boolean free_ends, boolean chrom, boolean init, boolean fin)
telomeres
- free_ends
- chrom
- init
- fin
-
public boolean removeEdge(AbEdge e)
edge
- e
public boolean removeVertex(AbVertex vertex)
edge
- vertex
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set connectedComponentOf(AbVertex vertex)
vertex
-
public boolean addToComponent(AbVertex vertex, java.util.Set component, int in_edge)
vertex
- component
- set to add toin_edge
- the edge type traversed to reach this edge.
public AbGraph removeComponentOf(AbVertex vertex)
vertex
-
public boolean removeToComponent(AbVertex vertex, AbGraph component, int in_edge)
vertex
- component
- in_edge
-
public java.util.Vector<AbGraph> connectedComponents()
public AbVertex partnerOf(AbVertex vertex, int edge_type)
vertex
- edge_type
-
public AbVertex getVertex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |