string - Encode a graph using a three-character language? -


suppose have alphabet 3 characters, say, 0, 1, @. how can represent unweighted (all vertices , edges have weight 1), undirected graph g = (v, e) using string of these characters?

you try adjacency matrix.

http://en.wikipedia.org/wiki/adjacency_matrix

maybe use @ represent each new line.

so 100@010@001@ identity matrix


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -