keepOnlyDiagramTypeEdges
Filters Vista.edges by edge-kind to match the diagram type being rendered. Views are untouched — a node can still appear in a data-flow-only diagram even if its only incident edges were control-flow; pruneIsolatedElements cleans those up.