jamesscottbrown / pyyed

A simple Python library to export networks to yEd
BSD 3-Clause "New" or "Revised" License
81 stars 37 forks source link

add source and target labels for edges #34

Closed ragho closed 3 years ago

ragho commented 3 years ago

Allow add_edge to take source_label and target_label (named) arguments. Both are optional.

ragho commented 3 years ago

@jamesscottbrown Please review and consider.

bockor commented 3 years ago

I believe you have here an error my friend !

Line 251:

self.target_label = target_label
                               ^

TabError: inconsistent use of tabs and spaces in indentation

jamesscottbrown commented 3 years ago

I have fixed the whitespace and merged these changes with https://github.com/jamesscottbrown/pyyed/commit/8b26810c080441ef8e869b5709a81083ddd3cef6