The "missing" graph datatype already exists. It was invented in the '70s
This post is a response to/inspired by The Hunt for the Missing Data
Type
(HN) by Hillel Wayne. I
suggest reading his article first.
Why do programming languages lack built-in support for graphs and graph
algorithms? Or—why is there no “datatype” for a graph? Hillel Wayne argues
(in the post linked above) that there are a few reasons:
There are too many types of graphs.
There are too many graph algorithms.
Even if you focus on one particular type of graph, there are many possible
different graph...
Read more at tylerhou.com