Skip to content

Instantly share code, notes, and snippets.

View YukeWang96's full-sized avatar

YUKE WANG YukeWang96

View GitHub Profile
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@farkhor
farkhor / vertex_index_minimizer.cpp
Last active April 27, 2020 02:19
This program takes the input graph as an edge list, and outputs an equivalent graph in which index vertices are minimized. In other words, it converts input graph's vertex indices to non-negative numbers so that if there exists an index a>0, and 0<=b<a, there will exist index b in the list of edges as a source and/or destination vertex.
/*
* vertex_index_minimizer.cpp
*
* Created on: Sep 21, 2015
* Author: Farzad Khorasani
*/
#include <iostream>
#include <string>
#include <cstring>