A pet dog last night mauled a 4-year-old child to death in his family’s Brooklyn home — ripping open his neck as his mother screamed in horror, authorities said.

Jayelin Graham was pronounced dead on arrival at Brookdale hospital shortly after frantic rescue workers arrived at the family home at 2169 Pacific St. in East New York at 9:15 p.m..

“That little boy looked like a rag doll,” said one woman who saw little Jayelin taken from his third-floor apartment. “The dog ripped the baby’s throat out.”

Police said the child suffered bite wounds to his head, neck and torso.

The child’s 24-year-old mom was speaking with police at the 73rd Precinct early today, though there was no indication charges would be filed in the case.

In addition, several youths were also taken into custody in a tussle with cops in the aftermath of the horrific attack.

The family dogs were taken away in cages from the four-story brick building.

One was a German shepherd and the other was a pit bull that appeared heavily sedated. They were turned over to animal control officials.

Police sources said just one of the pets mauled the little boy.

Jayelin had a 2-year-old and 5-year-old brother who also lived with their parents — and a menagerie of pets that included two parrots, several parakeets, a rabbit, a turtle and fish.

Early this morning, an impromptu, candle-filled memorial sprang up outside the home.

Neighbors described a nightmare of screaming and confusion in the wake of the sickening attack.

“I heard screaming — oh God there was screaming,” said a woman who lives with her 9-year-old next door to Jayelin’s building. “But I couldn’t hear the words. I thought someone was getting beaten up.”

Several people were arrested at the scene “for unrelated reasons,” a spokesman for the NYPD said.

Neighbors, however, complained that five youths, all in their 20s, were rounded up and were only trying to help the distraught family after the vicious attack.

“The whole 73rd Precinct had to be out here,” said a shocked resident, Shanna Stewart.

Another resident said she witnessed one of the youths being pushed against the building door so hard his head went through a glass window.