$darkmode
DENOPTIM
|
This class represents an undirected version of the edge between two vertices. More...
Public Member Functions | |
UndirectedEdge (AttachmentPoint apA, AttachmentPoint apB, BondType bondType) | |
Constructor for an undirected edge. More... | |
UndirectedEdge (AttachmentPoint apA, AttachmentPoint apB) | |
Constructor for an undirected edge. More... | |
int | compare (UndirectedEdge other) |
String | toString () |
Private Member Functions | |
void | makeInvariant () |
Private Attributes | |
AttachmentPoint | apA |
Attachment point A. More... | |
AttachmentPoint | apB |
Attachment point B. More... | |
BondType | bondType = BondType.UNDEFINED |
The bond type associated with the connection between the fragments. More... | |
String | invariant = null |
Invariant representation used to compare. More... | |
This class represents an undirected version of the edge between two vertices.
However, it does not behave as a DENOPTIMEdge since it does not interfere with the available state of the attachment points.
Definition at line 32 of file UndirectedEdge.java.
denoptim.graph.simplified.UndirectedEdge.UndirectedEdge | ( | AttachmentPoint | apA, |
AttachmentPoint | apB, | ||
BondType | bondType | ||
) |
Constructor for an undirected edge.
This edge does not make the APs unavailable.
apA | one of the attachment points connected by this edge |
apB | another of the attachment points connected by this edge |
bondType | defines what kind of bond type this edge should be converted to when converting a graph into a chemical representation. |
Definition at line 65 of file UndirectedEdge.java.
References denoptim.graph.simplified.UndirectedEdge.apA, denoptim.graph.simplified.UndirectedEdge.apB, and denoptim.graph.simplified.UndirectedEdge.bondType.
denoptim.graph.simplified.UndirectedEdge.UndirectedEdge | ( | AttachmentPoint | apA, |
AttachmentPoint | apB | ||
) |
Constructor for an undirected edge.
This edge does not make the APs unavailable. Bond type is inferred from the first attachment point.
apA | one of the attachment points connected by this edge |
apB | another of the attachment points connected by this edge |
Definition at line 82 of file UndirectedEdge.java.
References denoptim.graph.simplified.UndirectedEdge.apA, denoptim.graph.simplified.UndirectedEdge.apB, denoptim.graph.AttachmentPoint.getAPClass(), and denoptim.graph.APClass.getBondType().
int denoptim.graph.simplified.UndirectedEdge.compare | ( | UndirectedEdge | other | ) |
Definition at line 111 of file UndirectedEdge.java.
References denoptim.graph.simplified.UndirectedEdge.bondType, denoptim.graph.simplified.UndirectedEdge.invariant, and denoptim.graph.simplified.UndirectedEdge.makeInvariant().
Referenced by denoptim.graph.DGraph.isIsomorphicTo(), and denoptim.graph.UndirectedEdgeRelationTest.testUndirectedComparison().
|
private |
Definition at line 89 of file UndirectedEdge.java.
References denoptim.graph.simplified.UndirectedEdge.apA, denoptim.graph.simplified.UndirectedEdge.apB, denoptim.graph.Vertex.getBuildingBlockId(), denoptim.graph.Vertex.getBuildingBlockType(), denoptim.graph.AttachmentPoint.getIndexInOwner(), denoptim.graph.AttachmentPoint.getOwner(), and denoptim.utils.GeneralUtils.getPaddedString().
Referenced by denoptim.graph.simplified.UndirectedEdge.compare().
String denoptim.graph.simplified.UndirectedEdge.toString | ( | ) |
Definition at line 135 of file UndirectedEdge.java.
References denoptim.graph.simplified.UndirectedEdge.apA, denoptim.graph.simplified.UndirectedEdge.apB, denoptim.graph.simplified.UndirectedEdge.bondType, denoptim.graph.AttachmentPoint.getIndexInOwner(), denoptim.graph.AttachmentPoint.getOwner(), and denoptim.graph.Vertex.getVertexId().
|
private |
Attachment point A.
Definition at line 37 of file UndirectedEdge.java.
Referenced by denoptim.graph.simplified.UndirectedEdge.makeInvariant(), denoptim.graph.simplified.UndirectedEdge.toString(), and denoptim.graph.simplified.UndirectedEdge.UndirectedEdge().
|
private |
Attachment point B.
Definition at line 42 of file UndirectedEdge.java.
Referenced by denoptim.graph.simplified.UndirectedEdge.makeInvariant(), denoptim.graph.simplified.UndirectedEdge.toString(), and denoptim.graph.simplified.UndirectedEdge.UndirectedEdge().
|
private |
The bond type associated with the connection between the fragments.
Definition at line 47 of file UndirectedEdge.java.
Referenced by denoptim.graph.simplified.UndirectedEdge.compare(), denoptim.graph.simplified.UndirectedEdge.toString(), and denoptim.graph.simplified.UndirectedEdge.UndirectedEdge().
|
private |
Invariant representation used to compare.
Definition at line 52 of file UndirectedEdge.java.
Referenced by denoptim.graph.simplified.UndirectedEdge.compare().