Search in sources :

Example 1 with DummyCyNode

use of org.cytoscape.model.DummyCyNode in project cytoscape-api by cytoscape.

the class AbstractCyRootNetworkTest method testAddSubNetworkWithInvalidNodesAndGoodEdges.

@Test(expected = IllegalArgumentException.class)
public void testAddSubNetworkWithInvalidNodesAndGoodEdges() {
    CyNode n1 = root.addNode();
    CyNode n2 = root.addNode();
    CyEdge e1 = root.addEdge(n1, n2, false);
    CyNode b1 = new DummyCyNode(74);
    CyNode b2 = new DummyCyNode(75);
    List<CyNode> nodes = Arrays.asList(b1, b2);
    List<CyEdge> edges = Arrays.asList(e1);
    CySubNetwork n = root.addSubNetwork(nodes, edges);
}
Also used : DummyCyNode(org.cytoscape.model.DummyCyNode) DummyCyNode(org.cytoscape.model.DummyCyNode) CyNode(org.cytoscape.model.CyNode) DummyCyEdge(org.cytoscape.model.DummyCyEdge) CyEdge(org.cytoscape.model.CyEdge) Test(org.junit.Test)

Aggregations

CyEdge (org.cytoscape.model.CyEdge)1 CyNode (org.cytoscape.model.CyNode)1 DummyCyEdge (org.cytoscape.model.DummyCyEdge)1 DummyCyNode (org.cytoscape.model.DummyCyNode)1 Test (org.junit.Test)1