Skip to content

Instantly share code, notes, and snippets.

Avatar

Antonio Cañada Momblant tonicanada

View GitHub Profile
View maxflowproblem_ford_fulkerson.js
// Ford-Fulkerson algorithm implementation to solve Max Network Flow
// capacitiesGraph graph network
// https://graphonline.ru/en/?graph=lfhEQWkIEqiJCKvH
const capacitiesGraph = [
[0, 18, 0, 15, 0, 0],
[0, 0, 9, 2, 10, 0],
[0, 0, 0, 0, 0, 13],
[0, 0, 0, 0, 3, 0],
View linearprogramming_maxflownetwork_ortools.cs
using System;
using Google.OrTools.LinearSolver;
// Max-flow algorithm example
// Capacities Graph Network (first row should correspond to S, last to T)
int[,] capacitiesGraph = new int[6, 6]
{
View statistics_causality_matching.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View statistics_causality_fixed_effects.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View statistics_causality_fixed_effects.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View statistics_causality_collider_variables.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View statistics_causality_controlling_variables.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Dijkstra.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Globalization;
using Autodesk.AutoCAD.DatabaseServices;
namespace ShortestPathMatrix
{
View GraphModelSelector.cs
using System;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
namespace ShortestPathMatrix
{
public class GraphModelSelector
{
View SampleGraphLoader.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.ApplicationServices;
namespace ShortestPathMatrix