def GetSources(arc, target):
    """All source nodes for a specified arc pointing to a specified node."""
    sources = {}
    for triple in target.arcsIn:
        if (triple.arc == arc):
            sources[triple.source] = 1
    return sources.keys()