Changeset 641d00


Ignore:
Timestamp:
03/02/11 17:19:16 (2 years ago)
Author:
Tiago de Paula Peixoto <tiago@…>
Branches:
master, python3
Children:
ceabe6
Parents:
011d7b
git-author:
Tiago de Paula Peixoto <tiago@…> (03/02/11 17:19:16)
git-committer:
Tiago de Paula Peixoto <tiago@…> (03/02/11 17:19:16)
Message:
Fix removal of 'core' submodule

This fixes a leftover bug from the removal of the 'core' submodule.
Location:
src/graph_tool
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • src/graph_tool/centrality/__init__.py

    r011d7b r641d00  
    4444dl_import("import libgraph_tool_centrality") 
    4545 
    46 from .. core import _prop, ungroup_vector_property 
     46from .. import _prop, ungroup_vector_property 
    4747import sys 
    4848import numpy 
  • src/graph_tool/clustering/__init__.py

    r011d7b r641d00  
    4545dl_import("import libgraph_tool_clustering as _gt") 
    4646 
    47 from .. core import _degree, _prop, Graph 
     47from .. import _degree, _prop, Graph 
    4848from .. topology import isomorphism 
    4949from .. generation import random_rewire 
     
    464464    shuffle_strategy : string (optional, default: "uncorrelated") 
    465465        Shuffle strategy to use. Can be either "correlated" or "uncorrelated". 
    466         See random_rewire() for details. 
     466        See :func:`~graph_tool.generation.random_rewire` for details. 
    467467 
    468468    Returns 
  • src/graph_tool/community/__init__.py

    r011d7b r641d00  
    4343dl_import("import libgraph_tool_community") 
    4444 
    45 from .. core import _degree, _prop, Graph, libcore 
     45from .. import _degree, _prop, Graph, libcore 
    4646import random 
    4747import sys 
  • src/graph_tool/correlations/__init__.py

    r011d7b r641d00  
    4444dl_import("import libgraph_tool_correlations") 
    4545 
    46 from .. core import _degree, _prop 
     46from .. import _degree, _prop 
    4747from numpy import * 
    4848 
  • src/graph_tool/draw/__init__.py

    r011d7b r641d00  
    3838 
    3939import sys, os, os.path, time, warnings, tempfile 
    40 from .. core import _degree, _prop, PropertyMap, _check_prop_vector,\ 
     40from .. import _degree, _prop, PropertyMap, _check_prop_vector,\ 
    4141     _check_prop_scalar, _check_prop_writable, group_vector_property,\ 
    4242     ungroup_vector_property 
  • src/graph_tool/flow/__init__.py

    r011d7b r641d00  
    7474dl_import("import libgraph_tool_flow") 
    7575 
    76 from .. core import _prop, _check_prop_scalar, _check_prop_writable 
     76from .. import _prop, _check_prop_scalar, _check_prop_writable 
    7777__all__ = ["edmonds_karp_max_flow", "push_relabel_max_flow", 
    7878           "boykov_kolmogorov_max_flow", "max_cardinality_matching"] 
  • src/graph_tool/generation/__init__.py

    r011d7b r641d00  
    4646dl_import("import libgraph_tool_generation") 
    4747 
    48 from .. core import Graph, _check_prop_scalar, _prop, _limit_args 
     48from .. import Graph, _check_prop_scalar, _prop, _limit_args 
    4949from .. stats import label_parallel_edges, label_self_loops 
    5050import sys, numpy, numpy.random 
  • src/graph_tool/run_action/inline.py

    r011d7b r641d00  
    1919 
    2020import sys, string, hashlib, os.path, re, glob 
    21 from .. import core 
     21from .. import * 
    2222from .. import libgraph_tool_core 
    2323import numpy 
     
    6767 
    6868for d in ["vertex", "edge", "graph"]: 
    69     for t in core.value_types(): 
     69    for t in value_types(): 
    7070        props += "typedef %s_prop_t::as<%s >::type %sprop_%s_t;\n" % \ 
    7171                 (d, t.replace("bool", "uint8_t"), d[0], clean_prop_type(t)) 
     
    159159        else: 
    160160            arg_val = global_dict[arg] 
    161         if issubclass(type(arg_val), core.Graph): 
     161        if issubclass(type(arg_val), Graph): 
    162162            alias = "__gt__" + arg 
    163163            gi = "__gt__" + arg + "__gi" 
     
    171171            arg_alias.append(alias) 
    172172            alias_dict[alias] = gi_val 
    173         elif type(arg_val) == core.PropertyMap: 
     173        elif type(arg_val) == PropertyMap: 
    174174            alias = "__gt__" + arg 
    175175            if arg_val == arg_val.get_graph().vertex_index: 
     
    223223            arg_val = global_dict[arg] 
    224224        if arg not in mask_ret and \ 
    225                type(arg_val) not in [numpy.ndarray, core.PropertyMap] and \ 
    226                not issubclass(type(arg_val), core.Graph): 
     225               type(arg_val) not in [numpy.ndarray, PropertyMap] and \ 
     226               not issubclass(type(arg_val), Graph): 
    227227            return_vals += 'return_vals["%s"] = %s;\n' % (arg, arg) 
    228228 
     
    242242                                        extra_objects + \ 
    243243                                        extra_link_args) + \ 
    244                                headers_hash + core.__version__).hexdigest() 
     244                               headers_hash + __version__).hexdigest() 
    245245    code += "\n// support code hash: " + support_hash 
    246246    inline_code = string.Template(globals()["code_template"]).\ 
  • src/graph_tool/search/__init__.py

    r011d7b r641d00  
    7979dl_import("import libgraph_tool_search") 
    8080 
    81 from .. core import _prop 
     81from .. import _prop 
    8282from .. decorators import _wraps 
    8383import sys 
     
    192192            ["initialize_vertex"]) 
    193193def bfs_search(g, source, visitor=BFSVisitor()): 
    194     r"""This function performs a breadth-first traversal of the vertices in a 
    195     directed or undirected graph. 
     194    r"""Breadth-first traversal of a directed or undirected graph. 
    196195 
    197196    Parameters 
     
    402401             "start_vertex"], ["initialize_vertex"]) 
    403402def dfs_search(g, source, visitor=DFSVisitor()): 
    404     r"""This function performs a depth-first traversal of the vertices in a 
    405     directed or undirected graph. 
     403    r"""Depth-first traversal of a directed or undirected graph. 
    406404 
    407405    Parameters 
     
    632630                    pred_map=None, combine=lambda a, b: a + b, 
    633631                    compare=lambda a, b: a < b, zero=0, infinity=float('inf')): 
    634     r"""This function performs a Dijsktra traversal of the vertices in a directed or undirected graph, with non-negative weights. 
     632    r"""Dijsktra traversal of a directed or undirected graph, with non-negative weights. 
    635633 
    636634    Parameters 
     
    899897                        compare=lambda a, b: a < b, zero=0, 
    900898                        infinity=float('inf')): 
    901     r"""This function performs a Bellman-Ford traversal of the vertices in a directed or undirected graph, with negative weights. 
     899    r"""Bellman-Ford traversal of a directed or undirected graph, with negative weights. 
    902900 
    903901    Parameters 
     
    11721170                 infinity=float('inf'), implicit=False): 
    11731171    r""" 
    1174     This algorithm implements a heuristic :math:`A^*` search on a weighted, directed or undirected graph for the case where all edge weights are non-negative. 
     1172    Heuristic :math:`A^*` search on a weighted, directed or undirected graph for the case where all edge weights are non-negative. 
    11751173 
    11761174    Parameters 
  • src/graph_tool/spectral/__init__.py

    r011d7b r641d00  
    3737""" 
    3838 
    39 from .. core import _degree, _prop, Graph, _limit_args 
     39from .. import _degree, _prop, Graph, _limit_args 
    4040from numpy import * 
    4141import scipy.sparse 
  • src/graph_tool/stats/__init__.py

    r011d7b r641d00  
    4848dl_import("import libgraph_tool_stats") 
    4949 
    50 from .. core import _degree, _prop 
     50from .. import _degree, _prop 
    5151from numpy import * 
    5252import numpy 
  • src/graph_tool/topology/__init__.py

    r011d7b r641d00  
    5050dl_import("import libgraph_tool_topology") 
    5151 
    52 from .. core import _prop, Vector_int32_t, _check_prop_writable, \ 
     52from .. import _prop, Vector_int32_t, _check_prop_writable, \ 
    5353     _check_prop_scalar,  _check_prop_vector, Graph, PropertyMap 
    5454import random, sys, numpy, weakref 
  • src/graph_tool/util/__init__.py

    r011d7b r641d00  
    4242dl_import("import libgraph_tool_util") 
    4343 
    44 from .. core import _degree, _prop 
     44from .. import _degree, _prop 
    4545import weakref 
    4646 
Note: See TracChangeset for help on using the changeset viewer.