title: SMILES from graph
body: <p>Is there a method or package that converts a graph (or adjacency matrix) into a SMILES string?</p>
  <p>For instance, I know the atoms are <code>[6 6 7 6 6 6 6 8] ([C C N C C C C O])</code>, and the adjacency matrix is</p>
  <pre><code>[[ 0.,  1.,  0.,  0.,  0.,  0.,  0.,  0.],
  
   [ 1.,  0.,  2.,  0.,  0.,  0.,  0.,  1.],
  
   [ 0.,  2.,  0.,  1.,  0.,  0.,  0.,  0.],
  
   [ 0.,  0.,  1.,  0.,  1.,  0.,  0.,  0.],
  
   [ 0.,  0.,  0.,  1.,  0.,  1.,  0.,  0.],
  
   [ 0.,  0.,  0.,  0.,  1.,  0.,  1.,  1.],
  
   [ 0.,  0.,  0.,  0.,  0.,  1.,  0.,  0.],
  
   [ 0.,  1.,  0.,  0.,  0.,  1.,  0.,  0.]]
  </code></pre>
  <p>I need some function to output <code>'CC1=NCCC(C)O1'</code>.</p>
  <p>It also works if some function can output the corresponding <code>&quot;mol&quot;</code> object. The RDkit software has a <code>'MolFromSmiles'</code> function. I wonder if there is something like <code>'MolFromGraphs'</code>.</p>