Large number of examples use interfaces that have been removed

Open
#146 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@deinst is already working on this.

Since Jan 30, 2019.

  • #159 by @deinst — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
tooling

Research direction

Start with the listed example files and inspect the removed GraphvizGraph interface, including the note that it has not worked for a long time. Then examine strong_components.cpp and the changed Graphviz API behavior. Done means the affected examples either use supported interfaces or are removed, and strong_components.cpp no longer misinterprets a filename as Graphviz data.

Written by the indexing model from the issue text.

Description

docs

The following files:

kruskal-telephone.cpp ;
loops_dfs.cpp ;
scc.cpp ;
reachable-loop-head.cpp ;
cc-internet.cpp ;
reachable-loop-tail.cpp ;
prim-telephone.cpp ;
dfs-parenthesis.cpp ;
edge_connectivity.cpp ;
edge-connectivity.cpp ;

All use GraphvizGraph and related interfaces which have been removed from the library - actually they are commented out with the note:

  // This interface has not worked for a long time

So either we need to remove these examples altogether, or better, figure out what interface they should be using.

In addition strong_components.cpp calls an old Graphviz API whose meaning has changed - as a result it chokes interpreting a filename as Graphviz data. Replacing the filename with a std::ifstream just moves the error elsewhere :(

Dominant language
C++
Stars
402
Forks
251
Avg merge
1d 9h
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/graph

All issues in boostorg/graph

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.