$darkmode
DENOPTIM
denoptim.graph.rings.PathSubGraphTest Class Reference

Unit test for PathSubGraph. More...

Public Member Functions

void testMakePathSubGraph () throws Exception
 

Static Public Member Functions

static DGraph makeTestGraphA () throws DENOPTIMException
 Build a graph meant to be used in unit tests. More...
 
static DGraph makeTestGraphB () throws DENOPTIMException
 Build a graph meant to be used in unit tests. More...
 

Detailed Description

Unit test for PathSubGraph.

Author
Marco Foscato

Definition at line 53 of file PathSubGraphTest.java.

Member Function Documentation

◆ makeTestGraphA()

static DGraph denoptim.graph.rings.PathSubGraphTest.makeTestGraphA ( ) throws DENOPTIMException
static

Build a graph meant to be used in unit tests.

The returned graph has the following structure:

             C-C-C-C      N
             |     |     / \
RCV--[O-O]--[C--C--C]--[N---N]--RCV

Returns
a new instance of the test graph.
Exceptions
DENOPTIMException

Definition at line 69 of file PathSubGraphTest.java.

References denoptim.graph.Fragment.addAP(), denoptim.graph.DGraph.addEdge(), denoptim.graph.DGraph.addVertex(), denoptim.graph.Vertex.BBType.FRAGMENT, denoptim.graph.Vertex.getAP(), denoptim.graph.APClass.make(), denoptim.graph.Vertex.setAsRCV(), and denoptim.graph.Edge.BondType.SINGLE.

Referenced by denoptim.graph.rings.PathSubGraphTest.testMakePathSubGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeTestGraphB()

static DGraph denoptim.graph.rings.PathSubGraphTest.makeTestGraphB ( ) throws DENOPTIMException
static

Build a graph meant to be used in unit tests.

The returned graph has the following structure:

RCV--[O]--[C]--[N]--RCV

Returns
a new instance of the test graph.
Exceptions
DENOPTIMException

Definition at line 180 of file PathSubGraphTest.java.

References denoptim.graph.Fragment.addAP(), denoptim.graph.DGraph.addEdge(), denoptim.graph.DGraph.addVertex(), denoptim.graph.Vertex.BBType.FRAGMENT, denoptim.graph.Vertex.getAP(), denoptim.graph.APClass.make(), denoptim.graph.Vertex.setAsRCV(), and denoptim.graph.Edge.BondType.SINGLE.

Referenced by denoptim.graph.rings.PathSubGraphTest.testMakePathSubGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ testMakePathSubGraph()


The documentation for this class was generated from the following file: