Skip to content

Instantly share code, notes, and snippets.

View simonwagner's full-sized avatar

Simon Wagner simonwagner

  • Munich, Germany
View GitHub Profile
#!/usr/bin/env python
"""
Test case for a bug in networkx.algorithms.maximal_matching version 1.8.1
It seems that depending on the order of the nodes in the edges ( (a,b) vs (b,a) )
maximal_matching does return different results.
"""
import networkx as nx
@simonwagner
simonwagner / Makefile
Created June 22, 2013 15:07
Nearly perfect automatic Makefile for C++11. Simply drop it into your source folder and you are done.
TARGET = program
CXXFLAGS += -g -std=c++11
.PHONY: default all clean
default: $(TARGET)
all: default
SOURCES = $(wildcard **/*.cpp) $(wildcard *.cpp)
OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))