Graph classification experiments
Project · research · 2025
Graph classification experiments is a research codebase from early 2025 that compares neural networks on graphs with a classical algorithm. It works on two standard benchmarks, MUTAG and PROTEINS, using PyTorch Geometric and NetworkX.
The question
Can a graph neural network tell whether two graphs have the same structure as well as an exact algorithm can, and how much faster? The datasets come from the TU Dortmund graph collection:
- MUTAG: small molecules labelled by whether they are mutagenic;
- PROTEINS: proteins labelled as enzymes or not.
What's in it
- Three graph neural models, each with its own training and prediction code:
- a graph matching network built from graph convolution (GCN) layers and mean pooling;
- a graph attention network (GAT);
- a simplified graph convolution (SGC).
- A classical baseline that uses NetworkX's
GraphMatcherto check exact isomorphism and compute a structural similarity score. - A benchmark script that converts NetworkX graphs into PyTorch Geometric data and times each model against the baseline on the same pairs.
See also
- Machine learning and data
- text2kgraph, from the same month
- Knowledge graphs
In the knowledge graph
Graph classification experiments and the 12 things it is linked to. Open any dot for its page, or explore it in the full graph.
As data
Everything on this page is read from triples in the knowledge graph. These are the 25 it states about Graph classification experiments, and 5 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.
@prefix id: <https://ask.chaipat.cc/id/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix cj: <https://ask.chaipat.cc/ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . id:GraphML a cj:Project ; rdfs:label "Graph classification experiments" ; cj:description "Graph-classification experiments on the MUTAG and PROTEINS datasets with PyTorch Geometric." ; cj:context id:OpenSource ; cj:repository "https://github.com/AppleBoiy/gmb"^^xsd:anyURI ; cj:firstCommit "2025-02-03"^^xsd:date ; cj:lastCommit "2025-02-22"^^xsd:date ; cj:commitCount 9 ; cj:kind "research" ; cj:license "MIT" ; cj:theme id:ThemeML , id:ThemeOntology ; cj:uses id:Python , id:PyTorchGeometric , id:NetworkX ; cj:tier 2 ; cj:implements id:GNN , id:GraphIsomorphism ; cj:usesData id:MUTAG , id:PROTEINS ; cj:relatedTo id:KGFromText ; cj:mentions id:KnowledgeGraphs ; cj:article "https://ask.chaipat.cc/wiki/GraphML"^^xsd:anyURI ; cj:activeIn id:Y2025 ; cj:activity _:b72 .