Skip to content

Clarifying the "Unreachable vertices for sample" message #48

@stefanhannie

Description

@stefanhannie

Hi,

I want to make sure I'm understanding the "Unreachable vertices for sample" message found here:

print(f"Unreachable vertices for sample: {len(unreachable)}")

I've done a little bit of debugging and I think this is only triggering when you run multiple samples through Carnival as this is flagging vertices that cannot be reached in the union graph of all of your samples when subsetting on a specific sample. Is this correct?

From the message, I assumed that these referred to vertices that were unreachable given my specified input and output vertices. But that doesn't seem to be the case. That seems to be happening silently in the prune_graph here:

sub_graph = G.prune(list(inputs_in_graph), list(outputs_in_graph))
subgraph_vertices = set(sub_graph.V)
reachable_inputs.update(inputs_in_graph & subgraph_vertices)
reachable_outputs.update(outputs_in_graph & subgraph_vertices)


Just wanted to confirm what was going on and maybe flag this in case others were getting confused by the message.

Thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions