This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Most of these algorithms are derived from psuedocode in Cormen et. al. | |
inf = float('inf') | |
class Vertex(object): | |
""" Adjacent list implementation of a graph. Create a vertex (v) and then its adjacent edges are stored | |
in the list v.edges. A graph will then just be a set of vertex objects. Can use this to implement | |
directed/undirected and weighted/unweighted graphs easily.""" | |
def __init__(self, adj=[]): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$(document).ready(function () { | |
$('#next').click(function () { | |
$.post( | |
PT_Ajax.ajaxurl, | |
{ | |
// wp ajax action | |
action: 'ajax-inputtitleSubmit', | |
// vars |