A
- public abstract class AbstractDigraph<A> extends java.lang.Object implements Digraph<A>, ConnectionProvider<A>
Constructor and Description |
---|
AbstractDigraph(Ligand<A> root) |
AbstractDigraph(Ligand<A> root,
DescriptorManager<A> manager) |
Modifier and Type | Method and Description |
---|---|
void |
build()
Exhaustively expands from the root creating all ligands.
|
void |
dispose()
Clear the digraph ready for GC
|
java.util.List<Arc<A>> |
getArcs(Ligand<A> ligand) |
abstract java.util.Collection<A> |
getConnected(A atom) |
abstract int |
getDepth(A first,
A second) |
java.util.List<Ligand<A>> |
getLigands(A atom)
Access all created ligands for the provided atom.
|
java.util.List<Ligand<A>> |
getLigands(Ligand<A> ligand) |
abstract int |
getOrder(A first,
A second) |
Arc<A> |
getParentArc(Ligand<A> ligand) |
java.util.List<Ligand<A>> |
getProximal()
Access the proximal ligands next to the root.
|
Ligand<A> |
getRoot()
Access the root ligand of this digraph.
|
void |
reroot(Ligand<A> ligand)
Reroot the digraph on the provided ligand.
|
public AbstractDigraph(Ligand<A> root, DescriptorManager<A> manager)
root
- manager
- public Ligand<A> getRoot()
Digraph
public java.util.List<Ligand<A>> getProximal()
Digraph
IllegalArgumentException
.getProximal
in interface Digraph<A>
Ligand
public java.util.List<Ligand<A>> getLigands(A atom)
Digraph
Digraph.build()
.getLigands
in interface ConnectionProvider<A>
getLigands
in interface Digraph<A>
atom
- to access ligands forDigraph.build()
public void reroot(Ligand<A> ligand)
Digraph
public void build()
Digraph
public java.util.List<Arc<A>> getArcs(Ligand<A> ligand)
getArcs
in interface ConnectionProvider<A>
ligand
- public Arc<A> getParentArc(Ligand<A> ligand)
getParentArc
in interface ConnectionProvider<A>
ligand
- public java.util.List<Ligand<A>> getLigands(Ligand<A> ligand)
getLigands
in interface ConnectionProvider<A>
ligand
- public abstract java.util.Collection<A> getConnected(A atom)
atom
- public void dispose()
ConnectionProvider
dispose
in interface ConnectionProvider<A>