UnityMol  0.9.6-875
UnityMol viewer / In developement
GraphVertex Class Reference

Public Member Functions

bool SearchCycle (List< int > vertex, int first, int size=0)
 
bool AlreadyAdded (Dictionary< int, List< int >> connectivityList, int key, int atom)
 
void addInDict (Dictionary< int, List< int >> connectivityList, int ring1, int atom1, int ring2, int atom2)
 
bool SearchConnection (Dictionary< int, List< int >> connectivityList, List< int > trashlist, int r1=-1, int size=0)
 

Public Attributes

List< GraphVertexneighbor = new List<GraphVertex>()
 
int idRing = -1
 
char type
 
int id
 
string resname
 
Vector3 coordinate
 
bool flag =false
 

Detailed Description

This class is made to convert an atom (postion X,Y,Z) to a object with a list of neighbor.

Each neighbor is a "GraphVertex" object and it's made for a quick cycle search.

Definition at line 10 of file GraphVertex.cs.

Member Function Documentation

void GraphVertex.addInDict ( Dictionary< int, List< int >>  connectivityList,
int  ring1,
int  atom1,
int  ring2,
int  atom2 
)

Definition at line 79 of file GraphVertex.cs.

References AlreadyAdded().

Referenced by SearchConnection().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool GraphVertex.AlreadyAdded ( Dictionary< int, List< int >>  connectivityList,
int  key,
int  atom 
)

Definition at line 62 of file GraphVertex.cs.

Referenced by addInDict().

+ Here is the caller graph for this function:

bool GraphVertex.SearchConnection ( Dictionary< int, List< int >>  connectivityList,
List< int >  trashlist,
int  r1 = -1,
int  size = 0 
)

Definition at line 90 of file GraphVertex.cs.

References addInDict(), id, and idRing.

+ Here is the call graph for this function:

bool GraphVertex.SearchCycle ( List< int >  vertex,
int  first,
int  size = 0 
)

This function will search recursivly a cycle : We "walk" from atom to atom, and if we find the atom which we start of, (between 3 and 7 step, for "triangles" to hexagone), we return TRUE to say that we found a cycle and to add the atom to a list of atoms.

Returns
true, if cycle was searched, false otherwise.
Parameters
vertexlist of atoms
firstStarting atom
sizeNumber of step

Definition at line 32 of file GraphVertex.cs.

Member Data Documentation

Vector3 GraphVertex.coordinate

Definition at line 18 of file GraphVertex.cs.

Referenced by RingBlending.RingBlending(), and SugarRibbons.SugarRibbons().

bool GraphVertex.flag =false

Definition at line 19 of file GraphVertex.cs.

int GraphVertex.id
int GraphVertex.idRing = -1

Definition at line 14 of file GraphVertex.cs.

Referenced by SearchConnection().

List<GraphVertex> GraphVertex.neighbor = new List<GraphVertex>()

Definition at line 13 of file GraphVertex.cs.

string GraphVertex.resname

Definition at line 17 of file GraphVertex.cs.

Referenced by RingBlending.RingBlending(), and SugarRibbons.SugarRibbons().

char GraphVertex.type

Definition at line 15 of file GraphVertex.cs.

Referenced by RingBlending.RingBlending(), and SugarRibbons.SugarRibbons().


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