Skip to content

Instantly share code, notes, and snippets.

"""
From this paper: http://acl.ldc.upenn.edu/acl2004/emnlp/pdf/Mihalcea.pdf
I used python with nltk, and pygraph to do an implmentation of of textrank.
"""
import nltk
import itertools
import numpy as np
from matplotlib import pyplot as plt
#### From XKCD plot generator
"""
XKCD plot generator
-------------------
Author: Jake Vanderplas
This is a script that will take any matplotlib line diagram, and convert it
@abhinavgupta
abhinavgupta / aodv_802_15_4.tcl
Created August 7, 2012 10:03
A code snippet that implements a simple star topology with IEEE 802.15.4. Routing protocol - AODV. Simple Beginner simulation in NS2.
# Generated by Topology Generator for Network Simulator (c)
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy/802_15_4 ;# network interface type
set val(mac) Mac/802_15_4 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 100 ;# max packet in ifq
set val(nn) 500 ;# number of mobilenodes