<div dir="ltr"><span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px;border-collapse:separate"><b><div><br></div><div>Any help from Numpy community</div><div>[[   0.          1.54        0.          0.          0.            1.08     1.08      1.08  ]</div>

<div>[ 1.54        0.          1.08        1.08      1.08        0.          0.           0.   ]</div><div> [    0.       1.08         0.          0.           0.            0.           0.           0.   ]</div><div> [    0.       1.08         0.          0.           0.            0.          0.            0.    ]</div>

<div> [   0.        1.08        0.           0.           0.            0.          0.            0.    ]</div><div> [ 1.08       0.           0.           0.           0.            0.          0.            0.     ]</div>

<div> [ 1.08       0.           0.           0.           0.            0.          0.            0.     ]</div><div> [ 1.08       0.           0.           0.           0.            0.          0.            0.     ]]</div>

<div><br></div><div>the above is the numpy array matrix. the numbers represents:</div><div>C-C: 1.54 and C-H=1.08</div><div>So I want to write this form as</div><div>C of index i is connected to C of index j</div><div>C of index i is connected to H of index j</div>

<div><br></div><div>(C(i),C(j))  # key C(i) and value C(j)</div><div>(C(i),H(j)) # key C(i) and value H(j) ; the key C(i) can be repeated to fulfil as much as the values of H(j)</div><div>To summarize,  the out put may look like:</div>

<div>C1 is connected to C2</div><div>C1 is connected to H1</div><div>C1 is connected to H3</div><div>C2 is connected to H2   etc....</div><div><br></div><div>Any guide is greatly appreciated,</div><div>thanks</div><div>birda</div>

<div><br></div></b></span></div>