def _create_node(self, graph, article): """Create pygraph node""" graph.add_node(article.id) graph.add_node_attribute(article.id,{ 'name':article.slug, 'data':{} })
def create_node(self, graph, article): graph.add_node(article.id) graph.add_node_attribute(article.id,{ 'name':article.slug, 'data':{} })