Skip to content

Instantly share code, notes, and snippets.

View nathanhaigh's full-sized avatar

Nathan S. Watson-Haigh nathanhaigh

  • Alkahest Inc.
  • Adelaide, Australia
  • 13:40 (UTC +09:30)
  • X @watsonhaigh
View GitHub Profile
@nathanhaigh
nathanhaigh / asqg2dot.pl
Created August 27, 2012 03:39
Convert asqg formatted graph into dot format
#!/usr/bin/perl
# Usage: gunzip -c graph.asqg.gz | asqg2dot.pl ['<node_label_regex>'] > graph.dot
use strict;
use warnings;
my $bidirected = 1;
my $highlight_vertex_regex = shift @ARGV || '';
my %vertex_labels;