This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// STL | |
#include <cstdlib> | |
#include <iostream> | |
// boost::mpi | |
#include <boost/mpi/environment.hpp> | |
#include <boost/mpi/communicator.hpp> | |
#include <boost/mpi/status.hpp> | |
namespace mpi = boost::mpi; | |
// Definitions | |
#define NUMBER_OF_JOBS 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import networkx | |
import matplotlib.pyplot as plt | |
# Generate a graph. | |
# Here I chose an ER graph. | |
g = nx.erdos_renyi_graph(20, 0.3) | |
# Get positions. | |
# Here I use the spectral layout and add a little bit of noise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Wrapper around dreadnaut that computes the orbits of a graph. | |
NOTE: Must have installed `dreandaut`. The location of the binary can be passed | |
as an argument to `compute_automorphisms`. | |
Author: Jean-Gabriel Young <info@jgyoung.ca> | |
""" | |
import subprocess |
OlderNewer