| 514 | } |
| 515 | |
| 516 | inline void remove_edge(graph_traits<vtkGraph*>::edge_descriptor e, vtkGraph* g) |
| 517 | { |
| 518 | if (vtkMutableDirectedGraph::SafeDownCast(g)) |
| 519 | { |
| 520 | vtkMutableDirectedGraph::SafeDownCast(g)->RemoveEdge(e.Id); |
| 521 | } |
| 522 | else if (vtkMutableUndirectedGraph::SafeDownCast(g)) |
| 523 | { |
| 524 | vtkMutableUndirectedGraph::SafeDownCast(g)->RemoveEdge(e.Id); |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | //=========================================================================== |
| 529 | // vtkDirectedGraph |