vertex_similarity(): Add support for weighted and multigraphs

This fixes issue #592.
4 jobs for master in 395 minutes and 23 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
passed #4034
amd64
job_clang_amd64

06:16:30

passed #4036
amd64
job_clang_amd64_nosh

06:17:00

failed #4033
amd64
job_gcc_amd64

05:35:09

failed #4035
amd64
job_gcc_amd64_nosh

06:35:23

 
Name Stage Failure
failed
job_gcc_amd64_nosh Test
 1191 tests
3 failures in tests
0 failures in setup code
0 failures in cleanup code
build finished with problems, 19 warnings.
<string>:53: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
<string>:53: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
<string>:53: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
ERROR: Job failed: exit status 1
failed
job_gcc_amd64 Test
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
running tests...

Document: demos/inference/inference
-----------------------------------
bash: line 94: 20472 Segmentation fault (core dumped) python3 /usr/bin/sphinx-build -b doctest . build *.rst demos/inference/inference.rst
ERROR: Job failed: exit status 1