from typing import Dict


def load_embedding(file_path: str) -> Dict:
    """Load the node embeddings from a file.

    Args:
        file_path (str): Path to the file with the node embeddings.

    Results:
        embedding_dict (dict): A dictionary of node embedding vectors with nodes as keys.
    """

    embedding_dict = {}
    first_line = True
    with open(file_path) as f:
        for line in f:
            if first_line:
                first_line = False
                continue
            vector = [float(i) for i in line.strip().split()]
            embedding_dict[vector[0]] = vector[1:]
        f.close()

    return embedding_dict