Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
28f8cec
add: community detection guide docs - wip
Jul 29, 2025
5632575
fix: ipython warning
BeaMarton13 Jul 31, 2025
1d700a8
fix: remove all warnings
BeaMarton13 Jul 31, 2025
be75a60
add: notebooks and made community detection guide prettier
Jul 31, 2025
3981103
delete: unused files
Jul 31, 2025
91b1b5f
delete: ipynb_checkpoints
BeaMarton13 Jul 31, 2025
0f36868
add: all modularities w plot
BeaMarton13 Aug 1, 2025
035c579
add: LPA test
BeaMarton13 Aug 1, 2025
4679657
Merge remote-tracking branch 'upstream/develop' into feat/community-d…
BeaMarton13 Aug 4, 2025
a99dcf0
removed checkpoints
BeaMarton13 Aug 4, 2025
99db9fd
add: working with clusterings
BeaMarton13 Aug 4, 2025
29e17dd
add: updated modularity
BeaMarton13 Aug 4, 2025
06b22bd
add: fixed seed for grid graph
BeaMarton13 Aug 4, 2025
c9417de
add: new resolution params
BeaMarton13 Aug 4, 2025
61bb0c2
add: updated notebooks
BeaMarton13 Aug 4, 2025
4be130d
add: updated mkdoc
BeaMarton13 Aug 5, 2025
612d756
add: download button - wip
BeaMarton13 Aug 5, 2025
6a8d874
fix: unclickable card
BeaMarton13 Aug 5, 2025
e88e9e7
add: change color on download hover
BeaMarton13 Aug 5, 2025
7708a03
add: updated modularity
BeaMarton13 Aug 6, 2025
8eef8d0
fix: PR comments
BeaMarton13 Aug 6, 2025
ef2fb40
add: updated title for working with clusterings and removed extra new…
BeaMarton13 Aug 6, 2025
f763788
add: lower case and moved sierpinski methods to functions
BeaMarton13 Aug 6, 2025
6ca7c75
add: LPA description
BeaMarton13 Aug 6, 2025
ea6d5e8
add: new sphinx version, resolution paramter update and reordered tab…
BeaMarton13 Aug 6, 2025
76dfe11
Merge remote-tracking branch 'upstream/develop' into feat/community-d…
BeaMarton13 Aug 6, 2025
e5eaa80
delete: interactive_resolution_on_sierpinski
BeaMarton13 Aug 7, 2025
e675c03
add: updated resoltuion parameter
BeaMarton13 Aug 7, 2025
3eb5565
fix: remove plot function
BeaMarton13 Aug 7, 2025
3eb8e3c
add: more space before titles
BeaMarton13 Aug 7, 2025
0623371
add: weighted clustering for GoT
BeaMarton13 Aug 7, 2025
1fb27aa
add: minor refactoring on significance and smaller note block in init…
BeaMarton13 Aug 8, 2025
c0233aa
add: minor changes
BeaMarton13 Aug 8, 2025
ea0ff51
add: smaller note box
BeaMarton13 Aug 8, 2025
ef96b4c
fix: remove duplicate plots and unused functions
BeaMarton13 Aug 8, 2025
39aa549
add more space before paragraph
BeaMarton13 Aug 11, 2025
ed837d8
add: readme for networks and removed potter-network
BeaMarton13 Aug 11, 2025
9125180
Update README.md
BeaMarton13 Aug 11, 2025
6d6111e
add: directed Leiden support and fix grid graph error
BeaMarton13 Aug 11, 2025
c8b2f15
Merge branch 'feat/community-detection-guide-docs' of github.com:BeaM…
BeaMarton13 Aug 11, 2025
bdcf209
add: download button before notebook - wip
BeaMarton13 Aug 11, 2025
f52a6d9
Merge remote-tracking branch 'upstream/develop' into feat/community-d…
BeaMarton13 Aug 11, 2025
41b5a51
add: centered titles in card
BeaMarton13 Aug 11, 2025
cc82050
Merge remote-tracking branch 'upstream/develop' into feat/community-d…
BeaMarton13 Aug 11, 2025
277c40b
add: resolution limit and modularity formula update
BeaMarton13 Aug 12, 2025
3744ab0
fix: Title level inconsistent error on docs
BeaMarton13 Aug 13, 2025
c86dd8b
add: updated generating and visualizing clusters notebook
BeaMarton13 Aug 13, 2025
4d22459
add: updated generating and visualizing clusters notebook - wip
BeaMarton13 Aug 13, 2025
d209f9c
add: simlpified circle viz and removed unused imports
BeaMarton13 Aug 14, 2025
d9d4ebd
add: intrductions and changed adjacency matrix from lower to upper
BeaMarton13 Aug 14, 2025
01819fb
add: expand factor and edge for polygon
BeaMarton13 Aug 15, 2025
1c10a8a
add: game of thrones export script, csv and remove from functions
BeaMarton13 Aug 15, 2025
09e78ac
add: updated plot order
BeaMarton13 Aug 15, 2025
f81513f
add: local seed with example in initial workflow
BeaMarton13 Aug 15, 2025
820b3fd
fix: math expression
BeaMarton13 Aug 18, 2025
0b57ee7
add: directed and density based modualrity
BeaMarton13 Aug 18, 2025
0a2ecf1
add: new resolution param example and print comms
BeaMarton13 Aug 25, 2025
45d8c14
fix: Data type cannot be displayed in build
BeaMarton13 Aug 25, 2025
83f51dd
add: from directed to undirected modularity
BeaMarton13 Aug 26, 2025
b275ab0
add: working with directed networks and minor fixes
BeaMarton13 Aug 27, 2025
04ef972
add: football network - WIP
BeaMarton13 Aug 29, 2025
16a5fb4
add: cut on dendrogram
BeaMarton13 Aug 29, 2025
da945b8
add: minor descriptions and labels for matrix
BeaMarton13 Aug 29, 2025
d82f30d
add: new membership description - wip and helper function descriptions
BeaMarton13 Aug 29, 2025
399c6fa
fix: minor fixes in some notebooks
BeaMarton13 Aug 29, 2025
6ebb7dc
add: SBM as network for membership vector
BeaMarton13 Aug 30, 2025
0e69ba4
add: hierarchical clustering
BeaMarton13 Aug 30, 2025
933df71
fix: notes - last commit for GSoC2025
BeaMarton13 Aug 31, 2025
54e23de
fix: sentence case - final commit for GSoC2025
BeaMarton13 Aug 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add: download button - wip
  • Loading branch information
BeaMarton13 committed Aug 5, 2025
commit 612d756b8d9afb90b950cc079d8e054d74f775c4
125 changes: 58 additions & 67 deletions doc/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,94 +10,85 @@
}

/* Custom CSS for colored cards */

/* Base card styling (adjust padding, font sizes if needed) */
/* Base card styling for better visual appearance */
.sd-card {
border: none !important; /* Remove default border */
border-radius: 8px !important; /* Slightly rounded corners */
text-align: center; /* Center content within the card */
display: flex;
flex-direction: column;
justify-content: center; /* Vertically center content */
align-items: center; /* Horizontally center content */
padding: 1.5em; /* Padding inside the card */
min-height: 140px; /* Ensure a consistent minimum height for cards */
color: white; /* Default text color for all custom cards */
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
border: none !important;
border-radius: 8px !important;
position: relative;
padding: 1em; /* Adjust padding as needed */
color: white;
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hover effect */
.sd-card:hover {
transform: translateY(-5px); /* Lift card slightly */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
cursor: pointer;
position: relative;
transform: translateY(-3px); /* Slightly lift card */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* Card titles */
.sd-card-title {
font-size: 1.2em; /* Larger title */
/* Card titles inside the body */
.sd-card-body h3, .sd-card-body strong {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 0.5em; /* Space between title and icon */
color: white !important; /* Ensure title color is white */
margin-bottom: 0.5em;
color: white !important;
}

/* Ensure the main content block has flexible spacing */
.sd-card-body {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}

/* Download button container inside the card */
.sd-card-body .download-container {
position: relative;
z-index: 10; /* A high number to make sure it's on top */
margin-top: auto; /* Push to the bottom */
text-align: right;
}

/* The actual button inside the container */
.sd-card-body .download-button {
background-color: #f8f9fa;
color: #212529;
border: 1px solid #ced4da;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}

.download-link {
text-decoration: none !important;
}

/* Icon styling (for Font Awesome icons within cards) */
.sd-card .fa-solid,
.sd-card .fa-regular,
.sd-card .fa-brands {
font-size: 3.5em; /* Large icon size */
margin-bottom: 0.3em; /* Space between icon and text */
opacity: 0.8; /* Slightly less opaque than text */
color: white !important; /* Ensure icon color is white */
.download-button {
padding: 8px 16px;
background-color: #2980b9;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}

.download-button:hover {
background-color: #3498db;
}

/* Colored cards (your colors are good) */
.card-red-orange { background-color: #FF6633; }
.card-deep-orange { background-color: #FF8C40; }
.card-yellow-orange { background-color: #FFA500; }

.card-light-green { background-color: #7ED957; }
.card-medium-green { background-color: #70B341; }
.card-dark-green { background-color: #4CAF50; }

.card-light-blue { background-color: #409ED8; }
.card-medium-blue { background-color: #007BFF; }
.card-deep-blue { background-color: #0056b3; }

.card-light-purple { background-color: #BF40BF; }
.card-medium-purple { background-color: #800080; }
.card-deep-purple { background-color: #4B0082; }

/* Optional: Make links within cards cover the whole card */
.sd-card a {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-decoration: none; /* Remove underline */
z-index: 1; /* Ensure link is clickable */
}

.sd-card a:hover {
text-decoration: none; /* No underline on hover */
}

/* Ensure text is on top of the link layer */
.sd-card .sd-card-body, .sd-card .sd-card-header, .sd-card .sd-card-footer {
position: relative;
z-index: 2;
}

/* Hide default card header/footer if not used */
.sd-card-header, .sd-card-footer {
display: none;
}

/* Ensure content doesn't block clickable area */
.sd-card-body {
position: relative;
z-index: 1;
pointer-events: none;
}
.card-deep-purple { background-color: #4B0082; }
112 changes: 111 additions & 1 deletion doc/source/community_detection_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,18 @@ This documentation provides an overview of the notebooks available in the commun
:link-type: doc
:class-card: sd-card-hover card-red-orange
:shadow: sm

**Overview:** This notebook is a quick start guide to community detection in igraph. It covers the initial workflow for detecting communities in networks. (If you look for a more practical learning experience, we recommend starting with this notebook.)

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/initial_workflow.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Community Detection Algorithms
:link: community_detection_guide/notebooks/community_detection_algorithms
Expand All @@ -38,13 +48,33 @@ This documentation provides an overview of the notebooks available in the commun

**Overview:** This notebook covers various community detection algorithms available in igraph. It provides a detailed explanation of these algorithms and when to use them.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/community_detection_algorithms.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Test Significance of Community
:link: community_detection_guide/notebooks/test_significance_of_community
:link-type: doc
:class-card: sd-card-hover card-yellow-orange
:shadow: sm

**Overview:** This notebook provides methods to test the significance of detected communities.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/test_significance_of_community.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Generating and Visualizing Clusters
:link: community_detection_guide/notebooks/generating_and_visualizing_clusters
Expand All @@ -53,6 +83,16 @@ This documentation provides an overview of the notebooks available in the commun
:shadow: sm

**Overview:** This notebook provides various methods for generating and visualizing clusters in networks. It includes techniques for visualizing community structures.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/generating_and_visualizing_clusters.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Hierarchical Clustering
:link: community_detection_guide/notebooks/hierarchical_clustering
Expand All @@ -62,13 +102,33 @@ This documentation provides an overview of the notebooks available in the commun

**Overview:** This notebook describes hierarchical clustering. It explains how to perform hierarchical clustering on networks and visualize the results.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/hierarchical_clustering.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Modularity
:link: community_detection_guide/notebooks/modularity
:link-type: doc
:class-card: sd-card-hover card-light-green
:shadow: sm

**Overview:** This notebook introduces the concept of modularity in community detection.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/modularity.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Interactive Resolution on Sierpinski
:link: community_detection_guide/notebooks/interactive_resolution_on_sierpinski
Expand All @@ -77,6 +137,16 @@ This documentation provides an overview of the notebooks available in the commun
:shadow: sm

**Overview:** This notebook introduces the concept of resolution parameter on the Sierpinski triangle.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/interactive_resolution_on_sierpinski.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Consensus Clustering
:link: community_detection_guide/notebooks/consensus_clustering
Expand All @@ -85,6 +155,16 @@ This documentation provides an overview of the notebooks available in the commun
:shadow: sm

**Overview:** This notebook introduces the method of consensus clustering by combining multiple clustering results.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/consensus_clustering.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Membership Vector
:link: community_detection_guide/notebooks/membership_vector
Expand All @@ -93,6 +173,16 @@ This documentation provides an overview of the notebooks available in the commun
:shadow: sm

**Overview:** This notebook introduces membership vectors in igraph.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/membership_vector.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Vertex Clustering Object
:link: community_detection_guide/notebooks/working_with_clusterings
Expand All @@ -101,6 +191,16 @@ This documentation provides an overview of the notebooks available in the commun
:shadow: sm

**Overview:** This notebook describes how to work with clusterings in igraph.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/working_with_clusterings.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

.. grid-item-card:: Helper Functions
:link: community_detection_guide/notebooks/functions
Expand All @@ -109,6 +209,16 @@ This documentation provides an overview of the notebooks available in the commun
:shadow: sm

**Overview:** This notebook introduces all the helper functions used in the community detection guide. It provides a collection of utility functions for community detection tasks.

.. raw:: html

<div class="download-container">
<a href="community_detection_guide/notebooks/functions.ipynb" download>
<button type="button" class="download-button">
<i class="fa-solid fa-download"></i> Download Notebook
</button>
</a>
</div>

Indices and tables
==================
Expand Down
5 changes: 4 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ def get_igraph_version():
# https://github.com/twisted/pydoctor/blob/master/docs/source/conf.py
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
html_css_files = ["custom.css"]
html_css_files = [
"custom.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
]

nbsphinx_execute = 'never'
nbsphinx_allow_errors = True
Expand Down