Social Network Graph (GraphML)
A small synthetic social network in GraphML — 12 people in two communities with a few bridging ties, carrying node attributes (name, age, community) and weighted edges. Twinned with a GEXF file for testing graph importers and format converters.
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key id="d_name" for="node" attr.name="name" attr.type="string"/>
<key id="d_age" for="node" attr.name="age" attr.type="int"/>
<key id="d_comm" for="node" attr.name="community" attr.type="string"/>
<key id="d_weight" for="edge" attr.name="weight" attr.type="double"/>
<graph id="social" edgedefault="undirected">
<node id="n0">
<data key="d_name">Ada</data>
<data key="d_age">29</data>
<data key="d_comm">A</data>
</node>
<node id="n1">
<data key="d_name">Ben</data>
<data key="d_age">34</data>
<data key="d_comm">A</data>
</node>
<node id="n2">
<data key="d_name">Chen</data>
<data key="d_age">41</data>
<data key="d_comm">A</data>
</node>
<node id="n3">
<data key="d_name">Dara</data>
<data key="d_age">26</data>
<data key="d_comm">A</data>
</node>
<node id="n4">
<data key="d_name">Ede</data>
<data key="d_age">38</data>
<data key="d_comm">A</data>
</node>
<node id="n5">
<data key="d_name">Faye</data>
<data key="d_age">31</data>
<data key="d_comm">B</data>
</node>
<node id="n6">
<data key="d_name">Gus</data>
<data key="d_age">45</data>
<data key="d_comm">B</data>
</node>
<node id="n7">
<data key="d_name">Hana</data>
<data key="d_age">27</data>
<data key="d_comm">B</data>
</node>
<node id="n8">Specifications
- Nodes
- 12
- Edges
- 21
- Directed
- false
- Attributes
- name, age, community; edge weight
What is a .graphml file?
GraphML is an XML-based format for describing graphs — nodes, edges, and typed attributes (keys) on either. It supports directed and undirected graphs, and is widely read by network tools such as Gephi, NetworkX, and yEd. Being plain XML, it is human-readable and easy to transform.
How to use this file
Use an example GraphML file to test graph and network importers, layout tools, and converters between GraphML, GEXF, and adjacency formats, or to verify that node and edge attributes survive a round-trip.
Related files
- graphmlService Dependency Graph (GraphML, directed)A directed service-dependency graph in GraphML — ten microservices (web, api, auth, db, cache, queue, worker, …) with their call/dependency edges. A fixture for testing directed-graph importers, cycle detection, and topological sorting.

- csvBank Transactions (CSV, 60 rows)A bank-transaction statement — 60 debits and credits across three accounts (masked numbers) with running balances, categories, and merchants. Synthetic data for testing statement parsers, categorisation, and reconciliation.

- jsonBank Transactions (JSON, 60 records)The bank transactions as a JSON array — the format twin of the CSV, for import and reconciliation testing.

- csvE-commerce Customers (CSV, 500 rows)A realistic e-commerce customer directory (500 rows) — part of a relational dataset (products, customers, orders) with CSV, JSON, SQL, and Parquet twins for testing joins, imports, and conversion.

- jsonE-commerce Customers (JSON, 500 records)The e-commerce customers table as a JSON array — the format twin of the CSV, for import and conversion testing.

- sqlE-commerce Database Schema (SQL)A relational SQL schema (products, customers, orders with primary and foreign keys) plus sample INSERTs — the DDL twin of the e-commerce dataset, for testing schema import and migrations.

Generated by generation/data_graphs.py. Free for any use, no attribution required — license.