Repository navigation
Create more Galery examples #819
Description
Activity
- addeddocumentationIssues that are related to the documentation of igraph; good candidates for first-time contributorsIssues that are related to the documentation of igraph; good candidates for first-time contributorsgood first issueCandidates for first-time contributors who are already familiar with CCandidates for first-time contributors who are already familiar with C
on Mar 22, 2025 I have prepared a documentation file explaining Partition Similarity Measure, including code snippets in Python. Could you confirm whether the appropriate path for adding examples is doc/examples_sphinx-gallery/? I want to ensure the file is placed correctly within the documentation structure.
Please see what I wrote about this on the forum: https://igraph.discourse.group/t/interest-in-gsoc-community-detection-guide-project/1951/9?u=szhorvat
New additions to the Gallery should follow the pattern you see in the existing ones: Demonstrate how to do a single task using igraph. Keep it short and to the point. Make the example visual and attractive.
Gallery items are not meant to explain a theoretical concept. Their purpose is to help people get started with igraph using bite-sized examples, to showcase igraph's capabilities.
Hi! I'm planning to work on the Personalized PageRank on a grid topic. Does that sound good?
Reacted by Szabolcs HorvátHey! should I, continue adding the Partition Similarity Measure example with a concise and focused explanation, ensuring it aligns with the gallery’s principles—brief, to the point, and accompanied by an attractive visualization.
Can I proceed with raising a PR under the gallery section?
@SKG24 It seems you are detecting communities with multiple methods then comparing the results using various metrics. I feel that while this will be useful for the future tutorial, it does not make an ideal example for the gallery. It does not show something that a newcomer might find difficult to figure out (other than visualizing a community structure, which already has an example), but it does bring many questions which can't easily be answered in the confines of such an example. Why do different methods give different results? Which is the right one? Why does even a single method sometimes give different results across multiple runs?
Ideally, a gallery example should try to either demonstrate a task that's popular but it's not obvious for a newcomer how to do it, or it should make a single point. If you are interested in using partition similarity measures, you could for example demonstrate how a stochastic method might give wildly different answers on a network without any significant community structure, while it gives consistent answers on one that has obvious communities. For example, use a stochastic method, generate multiple clusterings, then plot a histogram of pairwise similarities between these.
Reacted by Sanat Kumar GuptaHi! Where should our PR be targeted? On master or on the develop branch?
Please use
masterfor now. The GSoC project might move todevelop, but we stick tomasterfor now.Reacted by Ildiko-Beata Marton and Sanat Kumar GuptaSomething important I forgot to say is that you can build the documentation, including the gallery, using
scripts/mkdoc.sh -c. If the build succeeds, opendoc/html/index.htmlto check that they look good.Just mentioning that I'm now developing a dedicated package to plot graphs/networkx called
iplotx: https://github.com/fabilab/iplotx and includes more examples, mostly coming fromnetworkxat the moment, some self-made:https://iplotx.readthedocs.io/en/latest/gallery/index.html
Although connected, the topics of how to analyse and to visualise a network are not quite the same, therefore it would be perhaps useful to have the same examples on both package galleries with different explanations, one focusing on the analytics, the other on the styling.
Hi, I’m new to contributing to python-igraph and would like to work on this issue.
I’m thinking of adding a small, beginner-friendly example to the gallery (for example, a simple graph analysis example with clear explanation and plots).
Before starting, I wanted to ask:
– Is there any preferred structure or format for gallery examples?
– Would a simple introductory example be suitable to begin with?Thanks!
- added a commit that references this issue
on Mar 22, 2026
The python-igraph documentation includes a gallery of example applications:
https://python.igraph.org/en/stable/tutorials/index.html
This issue is to implement more examples. If you have ideas for examples, post them here. For inspiration, you may also look at the IGraph/M documentation, which includes many visual examples.
This is a good first issue if you are looking to start contributing to igraph with technical writing.
CC @RU-Lokamruth