|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gersteinlab.tyna.core.graph.AbstractGraph
org.gersteinlab.tyna.core.graph.AbstractMultiGraph
org.gersteinlab.tyna.core.graph.UndirectedMultiGraph
This class represents an undirected multigraph. See UndirectedGraph and MultiGraph for definitions.
| Nested Class Summary | |
protected class |
UndirectedMultiGraph.UndirectedMultiGraphEdgeIterator
|
| Nested classes inherited from class org.gersteinlab.tyna.core.graph.AbstractMultiGraph |
AbstractMultiGraph.AbstractMultiGraphEdgeIterator |
| Nested classes inherited from class org.gersteinlab.tyna.core.graph.AbstractGraph |
AbstractGraph.AbstractGraphEdgeIterator, AbstractGraph.AbstractGraphNodeIterator, AbstractGraph.BetweennessNode, AbstractGraph.DuplicateTree, AbstractGraph.HeadTailTree, AbstractGraph.HeadTree, AbstractGraph.TailTree |
| Field Summary |
| Fields inherited from class org.gersteinlab.tyna.core.graph.AbstractGraph |
attrs, edgeCount, edges, lastModified, nodes, revEdges |
| Constructor Summary | |
UndirectedMultiGraph()
Default constructor: creates an empty graph. |
|
UndirectedMultiGraph(Graph graph)
|
|
| Method Summary | |
java.util.List |
getDefectiveCliquesMissingEdges(int k,
int l)
Get the missing edges in defective cliques formed by two cliques with . |
int |
getDegree(Node node)
Get the degree of a node. |
java.util.Map |
getDegrees()
Get the degrees of all nodes in the graph. |
double[][] |
getDiffusionSimilarityMatrix(double beta,
int[][] negLaplacianMatrix)
Get the diffusion similarity matrix of a subgraph according to a given Laplacian matrix. |
double[][] |
getDiffusionSimilarityMatrix(double beta,
java.util.List nodeList)
Get the diffusion similarity matrix of a subgraph according to a given node order. |
EdgeIterator |
getEdgeIterator()
Return an iterator of the edges in the graph. |
java.util.List |
getEdges(Node node)
Get the edges incident on a node. |
java.util.List |
getMaximalCliques()
Get all maximal cliques |
java.util.List |
getMaximalIndependentSets()
Get all maximal independent sets |
int[][] |
getNegativeLaplacianMatrix(int[][] adjacencyMatrix)
Get the Laplacian matrix of a subgraph according to a given adjacency matrix. |
int[][] |
getNegativeLaplacianMatrix(java.util.List nodeList)
Get the negation of the Laplacian matrix of a subgraph according to a given node order. |
java.util.Set |
getNeighbors(Node node)
Get the neighbors of a node. |
| Methods inherited from class org.gersteinlab.tyna.core.graph.AbstractMultiGraph |
addEdge, getInDegree, getInEdges, getOutDegree, getOutEdges |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gersteinlab.tyna.core.graph.Graph |
addEdge, addNode, containsEdge, containsNode, getAttr, getAttrs, getEdgeCount, getEdgeNodePairs, getNode, getNodeCount, getNodeIterator, setAttr |
| Constructor Detail |
public UndirectedMultiGraph()
public UndirectedMultiGraph(Graph graph)
throws GraphTypeException
AbstractGraph.AbstractGraph(Graph)| Method Detail |
public EdgeIterator getEdgeIterator()
Graph
getEdgeIterator in interface Graph
public int getDegree(Node node)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
UndirectedGraph
getDegree in interface UndirectedGraphgetDegree in class AbstractGraphjava.lang.IllegalArgumentException
java.lang.NullPointerExceptionUndirectedGraph.getDegree(Node)public java.util.Map getDegrees()
UndirectedGraph
getDegrees in interface UndirectedGraphgetDegrees in class AbstractGraphUndirectedGraph.getDegrees()
public java.util.List getEdges(Node node)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
UndirectedGraph
getEdges in interface UndirectedGraphgetEdges in class AbstractGraphjava.lang.IllegalArgumentException
java.lang.NullPointerExceptionUndirectedGraph.getDegree(Node)
public java.util.Set getNeighbors(Node node)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
UndirectedGraph
getNeighbors in interface UndirectedGraphgetNeighbors in class AbstractGraphjava.lang.IllegalArgumentException
java.lang.NullPointerExceptionUndirectedGraph.getDegree(Node)public int[][] getNegativeLaplacianMatrix(java.util.List nodeList)
AdvancedUndirectedGraph
getNegativeLaplacianMatrix in interface AdvancedUndirectedGraphgetNegativeLaplacianMatrix in class AbstractGraphAdvancedUndirectedGraph.getNegativeLaplacianMatrix(List)public int[][] getNegativeLaplacianMatrix(int[][] adjacencyMatrix)
AdvancedUndirectedGraph
getNegativeLaplacianMatrix in interface AdvancedUndirectedGraphgetNegativeLaplacianMatrix in class AbstractGraphAdvancedUndirectedGraph.getNegativeLaplacianMatrix(int[][])
public double[][] getDiffusionSimilarityMatrix(double beta,
java.util.List nodeList)
throws JSci.maths.MaximumIterationsExceededException
AdvancedUndirectedGraph
getDiffusionSimilarityMatrix in interface AdvancedUndirectedGraphgetDiffusionSimilarityMatrix in class AbstractGraphJSci.maths.MaximumIterationsExceededException - If the eigen problem cannot be solved in a predefined number of iterationsAdvancedUndirectedGraph.getDiffusionSimilarityMatrix(double, List)
public double[][] getDiffusionSimilarityMatrix(double beta,
int[][] negLaplacianMatrix)
throws JSci.maths.MaximumIterationsExceededException
AdvancedUndirectedGraph
getDiffusionSimilarityMatrix in interface AdvancedUndirectedGraphgetDiffusionSimilarityMatrix in class AbstractGraphJSci.maths.MaximumIterationsExceededException - If the eigen problem cannot be solved in a predefined number of iterationsAdvancedUndirectedGraph.getDiffusionSimilarityMatrix(double, int[][])public java.util.List getMaximalIndependentSets()
AdvancedUndirectedGraph
getMaximalIndependentSets in interface AdvancedUndirectedGraphgetMaximalIndependentSets in class AbstractGraphAdvancedUndirectedGraph.getMaximalIndependentSets()public java.util.List getMaximalCliques()
AdvancedUndirectedGraph
getMaximalCliques in interface AdvancedUndirectedGraphgetMaximalCliques in class AbstractGraphAdvancedUndirectedGraph.getMaximalCliques()
public java.util.List getDefectiveCliquesMissingEdges(int k,
int l)
throws java.lang.IllegalArgumentException
AdvancedUndirectedGraph
getDefectiveCliquesMissingEdges in interface AdvancedUndirectedGraphgetDefectiveCliquesMissingEdges in class AbstractGraphjava.lang.IllegalArgumentExceptionAdvancedUndirectedGraph.getDefectiveCliquesMissingEdges(int, int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||