cage
Interface ElementRule
- All Known Implementing Classes:
- SingleElementRule, ValencyElementRule
public interface ElementRule
An ElementRule object can be used to deduce the chemical element of an
atom corresponding with a certain vertex in a graph.
Method Summary |
java.lang.String |
getElement(EmbeddableGraph graph,
int vertex)
Returns the chemical symbol of the chemical element of the
atom corresponding with vertex in graph. |
getElement
java.lang.String getElement(EmbeddableGraph graph,
int vertex)
- Returns the chemical symbol of the chemical element of the
atom corresponding with vertex in graph.
- Parameters:
graph
- The graph that contains the vertexvertex
- The vertex for which the element is requested
- Returns:
- The symbol of the element of vertex