Skip to content

Instantly share code, notes, and snippets.

@yamakk
yamakk / nx2gt.py
Created March 25, 2021 23:32 — forked from bbengfort/nx2gt.py
Convert a networkx to graph-tool graph
import networkx as nx
import graph_tool as gt
def get_prop_type(value, key=None):
"""
Performs typing and value conversion for the graph_tool PropertyMap class.
If a key is provided, it also ensures the key is in a format that can be
@yamakk
yamakk / 0_reuse_code.js
Created February 15, 2017 12:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console