Skip to content

Instantly share code, notes, and snippets.

@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;
@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 / blocksum.ipynb
Created February 19, 2023 14:11
Functional Programming Lightning Talk (blocksum example)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / GraphBLAS_prefix_scans.ipynb
Created June 28, 2021 17:53
GraphBLAS prefix scan
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eriknw
eriknw / LICENSE.txt
Last active January 19, 2019 13:54
Jupyter Notebook "goto" demo
Copyright (c) 2018 Erik Welch
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
a. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
b. Redistributions in binary form must reproduce the above copyright
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.