MCPcopy
hub / github.com/srixivas/PcapXray / apply_styles

Method apply_styles

Source/Module/plot_lan_network.py:77–84  ·  view source on GitHub ↗
(self, graph, styles)

Source from the content-addressed store, hash-verified

75 log.info("draw_graph complete")
76
77 def apply_styles(self, graph, styles):
78 graph.graph_attr.update(
79 ('graph' in styles and styles['graph']) or {}
80 )
81 graph.node_attr.update(
82 ('nodes' in styles and styles['nodes']) or {}
83 )
84 return graph
85
86 def apply_custom_style(self, graph, color):
87 style = {'edges': {

Callers 1

draw_graphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected