def __init__ (self, src, dst):
'''
Class constructor.
@type src: Mixed
@param src: Edge source
@type dst: Mixed
@param dst: Edge destination
'''
# the unique id for any edge (provided that duplicates are not allowed) is the combination of the source and
# the destination stored as a long long.
self.id = (src << 32) + dst
self.src = src
self.dst = dst
# general graph attributes.
self.color = 0x000000
self.label = ""
# gml relevant attributes.
self.gml_arrow = "none"
self.gml_stipple = 1
self.gml_line_width = 1.0
####################################################################################################################
评论列表
文章目录