This directory contains examples for advanced multilayer network analysis techniques. These examples cover specialized topics like embeddings, dynamics, decomposition, and tensor operations.
Transform networks into vector representations for machine learning:
example_embedding_construction.py- Construct Node2Vec embeddingsexample_embedding_visualization.py- Visualize network embeddingsexample_n2v_embedding.py- Node2Vec embedding examples
Simulate processes on networks:
example_random_walks.py- Random walks on multilayer networksexample_spreading.py- Simple spreading/diffusion processesexample_sir_multiplex.py- SIR epidemic simulation on multiplex networksexample_multiplex_dynamics.py- General dynamics on multiplex networks
Break down networks and classify nodes:
example_decomposition_and_classification.py- Decompose networks for node classificationexample_network_decomposition.py- Network decomposition techniquesexample_network_decomposition_different_meta_paths.py- Decomposition with meta-pathsexample_decomposition_ground_truth.py- Decomposition with ground truth evaluationexample_semantic_enrichment.py- Enrich networks with semantic informationexample_CBSSD.py- Cross-layer Betweenness-based Structural Similarity Decompositionexample_PPR.py- Personalized PageRank examples
Specialized multilayer operations:
example_inverse_network.py- Create inverse (transposed) networksexample_layer_extraction.py- Extract and analyze individual layersexample_manipulation.py- Advanced network manipulation techniquesexample_multiplex_aggregate.py- Aggregate multiplex networksexample_multilayer_vectorized_aggregation.py- Vectorized aggregation (high performance)example_vectorized_aggregation.py- Vectorized multilayer operations
Work with tensorial representations:
example_tensorial_manipulation.py- Tensor-based network operationsexample_tensorial_manipulation_headless.py- Tensor operations (non-interactive)example_supra_adjacency.py- Supra-adjacency matrix operationsexample_incidence_gadget_encoding.py- Incidence gadget encoding for multiplex networksexample_numeric_encoding.py- Numeric encoding schemes
Apply differential geometry to networks:
example_ricci_curvature.py- Ollivier-Ricci curvature and Ricci flow
- You need feature representations for ML tasks
- You want to visualize high-dimensional networks
- You need to compute node similarities
- Modeling information/disease spread
- Studying cascading processes
- Analyzing temporal evolution
- Networks are heterogeneous
- You need to classify nodes
- You want to simplify complex networks
- Working with mathematical formulations
- Implementing custom algorithms
- Optimizing performance
NOTE: Many examples in this category:
- May require significant computation time
- Might need external datasets
- Can be memory-intensive
Most are marked with SKIP_CI: slow or SKIP_CI: external_deps.
- Network Analysis - Basic metrics and centrality
- Communities - Community detection
- Workflows - Complete analysis pipelines