Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 844f6517 rédigé par Richard Zanibbi's avatar Richard Zanibbi
Parcourir les fichiers

Fixed headers to make them consistent.

parent f8742955
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 11 05:56:16 2013
#################################################################
# SmGrConfMatrix.py
#
# Structure confusion histograms.
#
# Author: H. Mouchere, June 2013
# Copyright (c) 2013 Richard Zanibbi and Harold Mouchere
################################################################
@author: Harold
"""
from operator import itemgetter
class SmDict(object):
......@@ -13,7 +16,6 @@ class SmDict(object):
For efficiency, use an object as a value to avoid call to set()
It uses the isomorphism to know if 2 smallGraphs are the same."""
def __init__(self,*args):
self.myitems = []
......
#define how compare nodes and edges, usable by other packages like smallGraph
################################################################
# compareTools.py
#
# Defines how nodes and edges are compared.
# Usable by other packages such as smallGraph
#
# Author: H. Mouchere, Oct. 2013
# Copyright (c) 2013, Harold Mouchere
################################################################
def defaultMetric(labelList1, labelList2):
#new way but with 1 label per node
......
################################################################
# lg.py - Bipartitite Graph Class
# lg.py - Label Graph Class
#
# Author: R. Zanibbi, June 2012
# Copyright (c) 2012, Richard Zanibbi and Harold Mouchere
......
......@@ -8,7 +8,7 @@
# and subscripts by 'SUP' and 'SUB.'
#
# Author: R. Zanibbi, June 2012-Jan. 2013
# Copyright (c) 2012, Richard Zanibbi and Harold Mouchere
# Copyright (c) 2012 Richard Zanibbi and Harold Mouchere
################################################################
import sys
......
################################################################
# smallGraph.py
#
# Simpler graph class for use with structure confusion
# histograms.
#
# Author: Harold Mouchere
# Copyright (c) 2013 Richard Zanibbi and Harold Mouchere
################################################################
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 10 04:13:40 2013
......@@ -204,4 +215,4 @@ def test():
print " SVG test : "
sg.nodes["1"] = "Test"
print sg.toSVG()
\ No newline at end of file
################################################################
# testNewSeg.py
#
# Test program for new segmentation for bipartite graph class.
# Test program for new segmentation for label graphs.
#
# Authors: R. Zanibbi, H. Mouchere
# June-August 2012
......@@ -11,8 +11,6 @@ from bg import *
from bestBG import *
def main():
nodeLabels = {}
nodeLabels['n1'] = { '2' : 1.0, '5' : False }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter