Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _intrinsic_node_columns(
nodes,
node_id,
neo4j_label
):
# TODO(cwharris): remove the string conversion once server can haandle non-ascending integers.
# currently, ids will be remapped as part of pre-plot rectification.
yield arrow.column(NODE_ID, [
[str(node.id) for node in nodes]
])
yield arrow.column(neo4j_label, [
[list(node.labels) for node in nodes]
])
def to_arrow( # TODO(cwharris): move these consts out of here
graph,
node_id=NODE_ID,
edge_id=EDGE_ID,
edge_src=EDGE_SRC,
edge_dst=EDGE_DST,
neo4j_type="__neo4j_type__",
neo4j_label="__neo4j_label__"
):
edge_table = _edge_table(
graph.relationships,
edge_id,
edge_src,
edge_dst,
neo4j_type
)
node_table = _node_table(
graph.nodes,