Search in sources :

Example 6 with PREdge

use of edu.ucsf.rbvi.clusterMaker2.internal.algorithms.ranking.units.PREdge in project clusterMaker2 by RBVI.

the class PR method addEdges.

private void addEdges() {
    for (CyEdge edge : edgeList) {
        PRNode sourceNode = idToNode.get(edge.getSource().getSUID());
        PRNode targetNode = idToNode.get(edge.getTarget().getSUID());
        PREdge prEdge = new PREdge(edge);
        insertEdgeScore(prEdge, edgeTable, edgeAttributes);
        graph.addEdge(prEdge, new Pair<>(sourceNode, targetNode), EdgeType.DIRECTED);
    }
}
Also used : PREdge(edu.ucsf.rbvi.clusterMaker2.internal.algorithms.ranking.units.PREdge) PRNode(edu.ucsf.rbvi.clusterMaker2.internal.algorithms.ranking.units.PRNode) CyEdge(org.cytoscape.model.CyEdge)

Aggregations

PREdge (edu.ucsf.rbvi.clusterMaker2.internal.algorithms.ranking.units.PREdge)6 PRNode (edu.ucsf.rbvi.clusterMaker2.internal.algorithms.ranking.units.PRNode)6 AbstractClusterResults (edu.ucsf.rbvi.clusterMaker2.internal.algorithms.AbstractClusterResults)3 NodeCluster (edu.ucsf.rbvi.clusterMaker2.internal.algorithms.NodeCluster)3 CyEdge (org.cytoscape.model.CyEdge)3