Ignore links where not both sides are known.
This commit is contained in:
parent
67da82fb38
commit
0632593675
|
@ -54,6 +54,7 @@ class NodeHierarchy(object):
|
||||||
for linkParID, linkPar in self.__hopglass.links.items():
|
for linkParID, linkPar in self.__hopglass.links.items():
|
||||||
for linkID, link in linkPar.items():
|
for linkID, link in linkPar.items():
|
||||||
print('Create Link object #',len(links), '\r',end = '')
|
print('Create Link object #',len(links), '\r',end = '')
|
||||||
|
if linkParID[0] != 'null' and linkParID[1] != 'null':
|
||||||
links.append(Link(link, (self.nodes[linkParID[0]], self.nodes[linkParID[1]])))
|
links.append(Link(link, (self.nodes[linkParID[0]], self.nodes[linkParID[1]])))
|
||||||
print('')
|
print('')
|
||||||
return links
|
return links
|
||||||
|
|
Loading…
Reference in a new issue