Skip to content

Instantly share code, notes, and snippets.

@eriknw
eriknw / nxfuncs.py
Last active October 18, 2022 17:36
NetworkX functions by namespace
import sys
import networkx as nx
from collections import defaultdict
from types import FunctionType
def fullname(func):
return f"{func.__module__}.{func.__name__}"
@eriknw
eriknw / blocksum.ipynb
Created February 19, 2023 14:11
Functional Programming Lightning Talk (blocksum example)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eriknw
eriknw / python_graphblas_logo0.svg
Last active October 1, 2023 01:05
experimenting with python-graphblas logo
# It is nice to experiment in a Jupyter Notebook
import numpy as np
import scipy as sp
import drawsvg as draw
gcube = np.array([
[-1, 1, -1],
[-1, 1, 1],
[1, 1, 1],
[-1, -1, 1],
@eriknw
eriknw / G1.dot
Last active December 12, 2023 14:11
NetworkX dependencies between dispatched functions
digraph {
all_pairs_shortest_path_length;
boruvka_mst_edges;
greedy_k_edge_augmentation;
minimum_cut_value;
immediate_dominators;
closeness_centrality;
dag_longest_path;
condensation;
maximum_flow_value;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eriknw
eriknw / dispatch_by_types_example.ipynb
Created September 2, 2024 10:52
Dispatch by types example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.