Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (origin.toJSON()['filtered'] and destination.toJSON()['filtered']):
- continue
- elif origin.toJSON()["filtered"]:
- edges.append({"source": destination.getId(),
- "target": destination.getId()})
- elif (destination.toJSON()["filtered"]):
- edges.append({"source": origin.getId(),
- "target": origin.getId()})
- else:
- edges.append({"source": origin.getId(),
- "target": destination.getId()})
- #SIMPLEEEE
- if(origin.toJSON()['filtered'] and destination.toJSON()['filtered']):
- continue
- elif origin.toJSON()["filtered"]:
- edges.append({"source": {"name": destination.getId(), 'searched': destination.element()['searched']},
- "target": {"name": destination.getId(), 'searched': destination.element()['searched']}})
- elif (destination.toJSON()["filtered"]):
- edges.append({"source": { "name" : origin.getId(), 'searched': origin.element()['searched']}, "target":{ "name" : origin.getId(), 'searched': origin.element()['searched']}})
- else:
- edges.append({"source": { "name" : origin.getId(), 'searched': origin.element()['searched']}, "target":{ "name" : destination.getId(), 'searched': destination.element()['searched']}})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement