Constructor and Description |
---|
VFQueryBuilder()
Constructor for VF Query Builder
|
Modifier and Type | Method and Description |
---|---|
INode |
addNode(AtomMatcher matcher,
org.openscience.cdk.interfaces.IAtom atom)
Add and return a node for a query atom
|
IEdge |
connect(INode source,
INode target,
BondMatcher matcher)
Construct and return an edge for a given query and target node
|
int |
countEdges()
Returns edge count.
|
int |
countNodes()
Returns node count.
|
java.lang.Iterable<IEdge> |
edges()
Returns edges of the query.
|
org.openscience.cdk.interfaces.IAtom |
getAtom(INode node)
Returns an atom associated with this node.
|
IEdge |
getEdge(INode source,
INode target)
Returns an edge associated between two nodes.
|
IEdge |
getEdge(int index)
Returns an edge of the query mol at a given position.
|
INode |
getNode(org.openscience.cdk.interfaces.IAtom atom)
Return a node for a given atom else return null
|
INode |
getNode(int index)
Returns a node of the query mol at a given position.
|
java.lang.Iterable<INode> |
nodes()
Returns nodes of the query.
|
public java.lang.Iterable<IEdge> edges()
public java.lang.Iterable<INode> nodes()
public INode getNode(int index)
public INode getNode(org.openscience.cdk.interfaces.IAtom atom)
atom
- public IEdge getEdge(int index)
public IEdge getEdge(INode source, INode target)
public INode addNode(AtomMatcher matcher, org.openscience.cdk.interfaces.IAtom atom)
matcher
- atom
- public org.openscience.cdk.interfaces.IAtom getAtom(INode node)
public int countNodes()
countNodes
in interface IQuery
public int countEdges()
countEdges
in interface IQuery
public IEdge connect(INode source, INode target, BondMatcher matcher)
source
- target
- matcher
-