These are some examples of XYL files, a simple format for recording points and lines in 2D space.
An XYL file assumes first the existence of an XY file, which lists the (X,Y) coordinates of points. Then the XYL file is used to define lines. Each line is described by a list of the indices of the points to connect. This list should be contained in a single line of the file. The number of nonblank noncomment lines of text is the number of lines. The total number of point indices is the number of "line items".
Since the XYL file includes point indexes, this raises the issue of whether to use 0 or 1-based indexing. For now, the issue is left open. A program reading an XYL file presumably also has access to the XY file. The index base can usually be inferred from the presence or absence of an index with value 0, or the presence or absence of an index value equal to the number of points.
# square.xy
# Vertices of a square
#
0.0 0.0
0.0 1.0
1.0 0.0
1.0 1.0
# square.xyl
# Indices of vertices to connect
#
1 2 4 3 1
GRF_TO_XYL, a FORTRAN90 program which converts information describing the adjacency and embedding of an abstract graph from GRF to XYL format.
XY_IO is a C++ library which reads and writes files in the XY and XYL formats.
XYL_DISPLAY is a MATLAB program which reads XYL information defining points and lines in 2D, and displays an image using MATLAB.
XYL_DISPLAY_OPEN_GL is a C++ program which reads XYL information defining points and lines in 2D, and displays an image using OpenGL.
XYZL, a data directory which contains examples of XYZL files, a simple 3D graphics point and line format;
ANNULUS is a set of 65 points and 48 lines creating quadrilateral faces.
COXETER is the Coxeter graph, originally stored as a GRF file.
HEXAGONAL describes 105 points, and the lines that connect some of them to form a 14 hexagons.
HOUSE describes points and lines that form a house.
K5 is the complete graph on 5 nodes, originally stored as a GRF file.
PETERSEN is the Petersen graph, originally stored as a GRF file.
QUADS describes 100 points, and the lines that connect them to form 81 quadrilaterals on a distorted rectangular mesh.
SQUARES describes 30 points, and the lines that connect them to form 20 squares.
TUTTE is the Tutte graph, originally stored as a GRF file.
You can go up one level to the DATA page.