This is a Hashiwokekaro puzzle. Here are the rules for Hashiwokekaro:
Draw zero, one, or two straight bridges between each pair of islands. Two bridges cannot cross, and bridges cannot cross through islands. The number on an island describes how many bridges are connected to that island. You must be able to get from any island to any other island through bridges.