|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geworkbench.util.network.EdgeMatrix
public class EdgeMatrix
Title: Sequence and Pattern Plugin
Description:
Copyright: Copyright (c) 2003
Company:
This class is used to represent a graph as a set of edges through a sparse matrix EM. If the entry EM(a, b) is not empty then an edge exists between nodes a and b. This matrix structure can be used to implement several graph algorithms Note that while the matrix could be implemented as a triangular one to save space, as edge(a,b) == edge(b,a), it is better to have two entries for each edge so that one can find all edges of a node by just exploring one column instead of having to look in all the columns.
| Nested Class Summary | |
|---|---|
class |
EdgeMatrix.MatrixCell
|
| Constructor Summary | |
|---|---|
EdgeMatrix()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
deserialize(DSMicroarraySet<DSMicroarray> microarraySet,
javax.swing.JProgressBar bar)
|
java.util.Set |
getConnectedNodes(DSGeneMarker aa)
|
EdgeMatrix.MatrixCell |
getEdge(DSGeneMarker a,
DSGeneMarker b)
This method returns the edge between a and b, it it exists. |
EdgeMatrix.MatrixCell |
getEdge(java.lang.Integer a,
java.lang.Integer b)
This method returns the edge between a and b, it it exists. |
java.util.Collection |
getEdges(DSGeneMarker aa)
|
void |
reduce(DSMicroarraySet microarraySet,
javax.swing.JProgressBar bar)
|
boolean |
remove(DSGeneMarker aa,
DSGeneMarker bb)
|
void |
serialize(DSMicroarraySet<DSMicroarray> microarraySet,
int cpuId,
int cpuNo)
Serializes the whole edge matrix |
void |
serializeNode(DSGeneMarker aNode)
This method serializes a column of the HashTable |
void |
setActive(DSGeneMarker a,
DSGeneMarker b,
boolean status)
|
boolean |
setEdge(DSGeneMarker aa,
DSGeneMarker bb,
GeneNetworkEdge edge)
Adds an edge to the network if one is not already present. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeMatrix()
| Method Detail |
|---|
public boolean setEdge(DSGeneMarker aa,
DSGeneMarker bb,
GeneNetworkEdge edge)
a - b - anEdge -
public EdgeMatrix.MatrixCell getEdge(DSGeneMarker a,
DSGeneMarker b)
a - b -
public EdgeMatrix.MatrixCell getEdge(java.lang.Integer a,
java.lang.Integer b)
a - an Integer with the serial id of the first geneb - an Integer with the serial id of the second gene
public void serializeNode(DSGeneMarker aNode)
aNode - the node to serialize
public void serialize(DSMicroarraySet<DSMicroarray> microarraySet,
int cpuId,
int cpuNo)
public void deserialize(DSMicroarraySet<DSMicroarray> microarraySet,
javax.swing.JProgressBar bar)
public void setActive(DSGeneMarker a,
DSGeneMarker b,
boolean status)
public boolean remove(DSGeneMarker aa,
DSGeneMarker bb)
public java.util.Collection getEdges(DSGeneMarker aa)
public java.util.Set getConnectedNodes(DSGeneMarker aa)
public void clear()
public void reduce(DSMicroarraySet microarraySet,
javax.swing.JProgressBar bar)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||